Пример #1
0
 public TcpPacketNetState(System.Net.Sockets.NetworkStream stream, IPEndPoint ep, int readBufferSize)
     : base(stream, ep, readBufferSize)
 {
     Handler = new ServerPacketHandler(this);
     Notifier = new PacketClientNotificationHandler(this);
     Reader.OnReadData += Handler.OnRead;
 }
Пример #2
0
 public UdpPacketNetState(IPEndPoint ep, int readBufferSize)
     : base(ep, readBufferSize)
 {
     Handler = new ServerPacketHandler(this);
     Notifier = new PacketClientNotificationHandler(this);
     Reader.OnReadData += Handler.OnRead;
 }
Пример #3
0
 public UdpPacketNetState(IPEndPoint ep, int readBufferSize)
     : base(ep, readBufferSize)
 {
     Handler            = new ServerPacketHandler(this);
     Notifier           = new PacketClientNotificationHandler(this);
     Reader.OnReadData += Handler.OnRead;
 }
Пример #4
0
 public TcpPacketNetState(System.Net.Sockets.NetworkStream stream, IPEndPoint ep, int readBufferSize)
     : base(stream, ep, readBufferSize)
 {
     Handler            = new ServerPacketHandler(this);
     Notifier           = new PacketClientNotificationHandler(this);
     Reader.OnReadData += Handler.OnRead;
 }