//シェルを開き、イベントレシーバを書き換える private void SuccessfullyExit() { SSHSocket sshsocket = new SSHSocket(_parent); sshsocket.SetSSHConnection(_connection); sshsocket.RepeatAsyncRead(_callback); //_callbackから先の処理は同じ _connection.EventReceiver = sshsocket; _parent.ReplaceSSHSocket(sshsocket); sshsocket.OpenShell(); }
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(); } }
//�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(); }