com.jscape.inet.ipclient

## Interface IpClientListener

- All Superinterfaces:
    java.util.EventListener

      public interface IpClientListener
      extends java.util.EventListener

  Implements methods for capturing connected and disconnected events from IpClient class. Your application should implement this interface to capture these events.

       public class Application ... implements IpClientListener
       {
        ...
        public ... initMethod(...)
        {
            IpClient client = new IpClient(hostname,port);
            client.addIpClientListener(this);
        }
        ...
       }

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `connected(IpClientConnectedEvent event)` Invoked when connection to server is established.
    `void` | `disconnected(IpClientDisconnectedEvent event)` Invoked when connection to server is closed.

- - ### Method Detail

    - #### connected

          void connected(IpClientConnectedEvent event)

      Invoked when connection to server is established.
      Parameters:
        `event` - a `IpClientConnectedEvent`
      See Also:
        `IpClientConnectedEvent`

    - #### disconnected

          void disconnected(IpClientDisconnectedEvent event)

      Invoked when connection to server is closed.
      Parameters:
        `event` - a `IpClientDisconnectedEvent`
      See Also:
        `IpClientDisconnectedEvent`

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