com.jscape.inet.ssh

## Class SshDisconnectedEvent

- java.lang.Object
- - SshEvent
  - - com.jscape.inet.ssh.SshDisconnectedEvent

-     public class SshDisconnectedEvent
      extends SshEvent

  Fired by Ssh instance upon disconnect from server.
  Version:
    1.0
  Author:
    vglass

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SshDisconnectedEvent(Ssh source, java.lang.String host, int port)` Created SshDisconnectedEvent.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(SshListener listener)`
    `java.lang.String` | `getHost()` Gets host of SSH server.
    `int` | `getPort()` Gets port of SSH server.
    `java.lang.String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### SshDisconnectedEvent

          public SshDisconnectedEvent(Ssh source,
                                      java.lang.String host,
                                      int port)

      Created SshDisconnectedEvent.
      Parameters:
        `source` - the source of the event
        `host` - the host of SSH server
        `port` - the port of SSH server

  - ### Method Detail

    - #### getHost

          public java.lang.String getHost()

      Gets host of SSH server.
      Returns:
        host

    - #### getPort

          public int getPort()

      Gets port of SSH server.
      Returns:
        port

    - #### accept

          public void accept(SshListener listener)

    - #### toString

          public java.lang.String toString()

      Returns:
        String representation

Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved