Ejemplo n.º 1
0
 public void Close(string message)
 {
     if (closed) return;
     closed = true;
     if (backing != null) backing.Close();
     readQueue = writeQueue = default(Queue);
     RaiseCloseEvent (message);
 }
Ejemplo n.º 2
0
 public PacketLayer()
 {
     readQueue = new Queue(128);
     writeQueue = new Queue(128);
     MaxWriteQueue = 16777216;
     ReadQuantum = 4096;
     MaxReadPacket = 131072;
 }