Example #1
0
 public void Register(string key, PacketStream stream)
 {
     lock(_locker)
         _streamByKey.Add(key, stream);
     _sendQByKey.Add(key, new ConcurrentQueue<Packet>());
     _recvQByKey.Add(key, new ConcurrentQueue<Packet>());
 }
Example #2
0
 void AddClient(string name, PacketStream stream)
 {
     _messenger.Register(name, stream);
 }