public Channel(string servername, string rd, int cid, ISSHChannel channel, Socket socket) { _serverName = servername; _remoteDescription = rd; _connectionID = cid; _wroteClosedLog = false; _channel = new SynchronizedSSHChannel(channel); _socket = new SynchronizedSocket(socket); _buffer = new byte[0x1000]; _channelReady = new ManualResetEvent(false); }