internal ClientCnxnSocketNIO(ClientCnxn cnxn) : base(cnxn) { receiveEventArgs = new SocketAsyncEventArgs(); receiveEventArgs.SocketError = SocketError.Success; receiveEventArgs.SetBuffer(new byte[0], 0, 0); receiveEventArgs.Completed += delegate { ReceiveCompleted(); }; }
internal ClientCnxnSocketNIO(ClientCnxn cnxn) : base(cnxn) { }
protected ClientCnxnSocket(ClientCnxn cnxn) { incomingBuffer = lenBuffer; clientCnxn = cnxn; }
internal ClientCnxnSocketNIO(ClientCnxn cnxn) : base(cnxn) { socketAsyncEventArgs = new SocketAsyncEventArgs(); socketAsyncEventArgs.SetBuffer(new byte[0], 0, 0); socketAsyncEventArgs.Completed += delegate { SocketAsyncEventSignal.TrySignal(); }; }