Пример #1
0
        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);
        }
Пример #2
0
        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);
        }