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; }