コード例 #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;
 }