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 |
IpClientConnectedEvent(java.lang.Object source,
java.lang.String hostname,
int port)
Creates a new IpClientConnectedEvent instance. |
|
Method Summary |
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 |
IpClientConnectedEvent
public IpClientConnectedEvent(java.lang.Object source,
java.lang.String hostname,
int port)
- Creates a new IpClientConnectedEvent instance.
- Parameters:
source - the source of this eventhostname - the server hostnameport - the server port
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 2004 All Rights Reserved