Secure iNet Factory

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
 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

Secure iNet Factory

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