Exemple #1
0
 public UdpTransmissionState(int bufferSize, ref Socket socket, NUClientInfo client, Action callback = null)
 {
     this.data     = new byte[bufferSize];
     this.socket   = socket;
     this.client   = client;
     this.callback = callback;
 }
Exemple #2
0
 public TcpTransmissionState(int bufferSize, ref TcpClient tcpClient, NUClientInfo client, Action callback = null)
 {
     this.offset    = 0;
     this.data      = new byte[bufferSize];
     this.tcpClient = tcpClient;
     this.client    = client;
     this.callback  = callback;
 }