OpenShell() public method

public OpenShell ( ) : void
return void
コード例 #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
 public void AttachTransmissionSide(SSHConnection con)
 {
     _sshSocket.SetSSHConnection(con);
     if (con.AuthenticationResult == AuthenticationResult.Success)
     {
         SSHSocket ss = (SSHSocket)_sshSocket; //Keyboard-Interactiveがらみでちょっと不自然になってるな
         ISSHSubsystemParameter subsystem = (ISSHSubsystemParameter)_sshLoginParameter.GetAdapter(typeof(ISSHSubsystemParameter));
         if (subsystem != null)
         {
             ss.OpenSubsystem(subsystem.SubsystemName);
         }
         else //ふつうのシェル
         {
             ss.OpenShell();
         }
     }
 }
コード例 #4
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();
 }