예제 #1
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();
        }
예제 #2
0
 public void AttachTransmissionSide(SSHConnection con)
 {
     _sshSocket.SetSSHConnection(con);
     if (con.AuthenticationResult == AuthenticationResult.Success)
     {
         SSHSocket ss = (SSHSocket)_sshSocket; //Keyboard-Interactive‚ª‚ç‚Ý‚Å‚¿‚å‚Á‚Æ•sŽ©‘R‚É‚È‚Á‚Ä‚é‚È
         //ISSHSubsystemParameter subsystem = (ISSHSubsystemParameter)_sshLoginParameter;  //.GetAdapter(typeof(ISSHSubsystemParameter));
         //if(subsystem!=null)
         //    ss.OpenSubsystem(subsystem.SubsystemName);
         //else //‚ӂ‚¤‚̃VƒFƒ‹
         ss.OpenShell();
     }
 }