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