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