Пример #1
0
 public PeerGroup(ISerializer serializer, IDebugger debugger)
 {
     GroupId         = idPool.NewID();
     this.serializer = serializer;
     this.debugger   = debugger;
     peers           = new Dictionary <int, IPeer>();
     eventPool       = new PacketEventPool();
     joinQueuing     = new List <JoinGroupRequest>();
     joinHandling    = new List <JoinGroupRequest>();
 }
 public void Recycle()
 {
     PacketEventPool.Recycle(this);
 }