Send workers, Batch/AES encryption

This commit is contained in:
Amin.MasterkinG
2026-04-20 19:02:14 +03:30
parent e06c766ca9
commit abb764bce8
5 changed files with 285 additions and 0 deletions
+11
View File
@@ -81,3 +81,14 @@ func (s *SOCKSConnectionStore) Delete(id uint64) {
delete(s.items, id)
s.mu.Unlock()
}
func (s *SOCKSConnectionStore) Snapshot() []*SOCKSConnection {
s.mu.RLock()
defer s.mu.RUnlock()
items := make([]*SOCKSConnection, 0, len(s.items))
for _, item := range s.items {
items = append(items, item)
}
return items
}