com.jscape.inet.ipclient

## Class IpClientConnectedEvent

- java.lang.Object
- - java.util.EventObject
  - - com.jscape.inet.ipclient.IpClientConnectedEvent

- All Implemented Interfaces:
    java.io.Serializable

      public class IpClientConnectedEvent
      extends java.util.EventObject

  Fired when connection with server is established
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `IpClientConnectedEvent(java.lang.Object source, java.lang.String hostname, int port)` Creates a new IpClientConnectedEvent instance.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getHostname()` Gets hostname of server
    `int` | `getPort()` Gets port of server

    - ### Methods inherited from class java.util.EventObject

      `getSource, toString`

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

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

- - ### Constructor Detail

    - #### IpClientConnectedEvent

          public IpClientConnectedEvent(java.lang.Object source,
                                        java.lang.String hostname,
                                        int port)

      Creates a new IpClientConnectedEvent instance.
      Parameters:
        `source` - the source of this event
        `hostname` - the server hostname
        `port` - the server port

  - ### Method Detail

    - #### getHostname

          public java.lang.String getHostname()

      Gets hostname of server
      Returns:
        server hostname

    - #### getPort

          public int getPort()

      Gets port of server
      Returns:
        server port

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