コード例 #1
0
        //シェルを開き、イベントレシーバを書き換える
        private void SuccessfullyExit()
        {
            SSHSocket sshsocket = new SSHSocket(_parent);

            sshsocket.SetSSHConnection(_connection);
            sshsocket.RepeatAsyncRead(_callback); //_callbackから先の処理は同じ
            _connection.EventReceiver = sshsocket;
            _parent.ReplaceSSHSocket(sshsocket);
            sshsocket.OpenShell();
        }
コード例 #2
0
 public void AttachTransmissionSide(ISSHConnection con, AuthenticationStatus authStatus)
 {
     _sshSocket.SetSSHConnection(con);
     if (authStatus == AuthenticationStatus.Success)
     {
         SSHSocket ss = (SSHSocket)_sshSocket;
         ss.OpenShell();
     }
     else if (authStatus == AuthenticationStatus.NeedKeyboardInput)
     {
         SSHSocket ss = (SSHSocket)_sshSocket;
         ss.OpenKeyboardInteractiveShell();
     }
 }
コード例 #3
0
 //�V�F����J���A�C�x���g���V�[�o�����������
 private void SuccessfullyExit()
 {
     SSHSocket sshsocket = new SSHSocket(_parent);
     sshsocket.SetSSHConnection(_connection);
     sshsocket.RepeatAsyncRead(_callback); //_callback�����̏����͓���
     _connection.EventReceiver = sshsocket;
     _parent.ReplaceSSHSocket(sshsocket);
     sshsocket.OpenShell();
 }