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;
 }
 public UdpPacketNetState(IPEndPoint ep, int readBufferSize)
     : base(ep, readBufferSize)
 {
     Handler = new ServerPacketHandler(this);
     Notifier = new PacketClientNotificationHandler(this);
     Reader.OnReadData += Handler.OnRead;
 }
Beispiel #3
0
 public UdpPacketNetState(IPEndPoint ep, int readBufferSize)
     : base(ep, readBufferSize)
 {
     Handler            = new ServerPacketHandler(this);
     Notifier           = new PacketClientNotificationHandler(this);
     Reader.OnReadData += Handler.OnRead;
 }
Beispiel #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;
 }