예제 #1
0
파일: channel.cs 프로젝트: yueker/poderosa
        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);
        }