public void OpenKeyboardInteractiveShell() { _channelHandler = new SSHChannelHandler(new NullSSHChannel(), OnNormalTerminationCore, OnAbnormalTerminationCore); if (_callback != null) { _channelHandler.SetReceptionHandler(_callback); } }
public void RepeatAsyncRead(IByteAsyncInputStream cb) { _callback = cb; if (_channelHandler != null) { _channelHandler.SetReceptionHandler(cb); } }
public void OpenShell() { var channelHandler = _connection.OpenShell( channelOperator => { var handler = new SSHChannelHandler(channelOperator, OnNormalTerminationCore, OnAbnormalTerminationCore); if (_callback != null) { handler.SetReceptionHandler(_callback); } return(handler); } ); bool isReady = channelHandler.Operator.WaitReady(); if (!isReady) { ForceDisposed(); throw new Exception(PEnv.Strings.GetString("Message.SSHSocket.FailedToStartShell")); } _channelHandler = channelHandler; }
public void OpenShell() { var channelHandler = _connection.OpenShell( channelOperator => { var handler = new SSHChannelHandler(channelOperator, OnNormalTerminationCore, OnAbnormalTerminationCore); if (_callback != null) { handler.SetReceptionHandler(_callback); } return handler; } ); bool isReady = channelHandler.Operator.WaitReady(); if (!isReady) { ForceDisposed(); throw new Exception(PEnv.Strings.GetString("Message.SSHSocket.FailedToStartShell")); } _channelHandler = channelHandler; }