Interface ConnectionService

All Superinterfaces:
AutoCloseable, Channel, Closeable, Closeable, PortForwardingEventListenerManager, PortForwardingEventListenerManagerHolder, PropertyResolver, Service, SessionContextHolder, SessionHeartbeatController, SessionHolder<Session>, UnknownChannelReferenceHandlerManager
All Known Implementing Classes:
AbstractConnectionService, ClientConnectionService, ServerConnectionService

Interface implementing ssh-connection service.
Author:
Apache MINA SSHD Project
  • Method Details

    • registerChannel

      long registerChannel(Channel channel) throws IOException
      Register a newly created channel with a new unique identifier
      Parameters:
      channel - The Channel to register
      Returns:
      The assigned id of this channel - a UINT32 represented as a long
      Throws:
      IOException - If failed to initialize and register the channel
    • unregisterChannel

      void unregisterChannel(Channel channel)
      Remove this channel from the list of managed channels
      Parameters:
      channel - The Channel instance
    • getForwarder

      Forwarder getForwarder()
      Retrieve the forwarder instance
      Returns:
      The Forwarder
    • getAgentForwardSupport

      AgentForwardSupport getAgentForwardSupport()
    • getX11ForwardSupport

      X11ForwardSupport getX11ForwardSupport()
    • isAllowMoreSessions

      boolean isAllowMoreSessions()
    • setAllowMoreSessions

      void setAllowMoreSessions(boolean allow)