public class TCPConnectionEvent
extends java.util.EventObject
TCPConnectionEvent defines an event state object for a
TCP Socket Connection.| Constructor and Description |
|---|
TCPConnectionEvent(IIOPConnection source,
java.lang.String remoteIP,
int remotePort,
int localPort,
java.lang.String localIP)
Creates a new
TCPConnectionEvent instance passing in the
source of the event and relevant connection data. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLocalIP()
getLocalIP is an accessor for the local IP. |
int |
getLocalPort()
getLocalPort is an accessor for the local port. |
java.lang.String |
getRemoteIP()
getRemoteIP is an accessor for the remote IP. |
int |
getRemotePort()
getRemotePort is an accessor for the remote port. |
java.lang.String |
toString()
Returns a String representation of this EventObject.
|
public TCPConnectionEvent(IIOPConnection source, java.lang.String remoteIP, int remotePort, int localPort, java.lang.String localIP)
TCPConnectionEvent instance passing in the
source of the event and relevant connection data.source - an IIOPConnection valueremoteIP - a String value, maybe blank if a Socket has
just been created and not connected.remotePort - an int value, maybe -1 if a Socket has
just been created and not connected.localPort - an int valuelocalIP - a public java.lang.String getRemoteIP()
getRemoteIP is an accessor for the remote IP.String valuepublic int getRemotePort()
getRemotePort is an accessor for the remote port.int valuepublic int getLocalPort()
getLocalPort is an accessor for the local port.int valuepublic java.lang.String getLocalIP()
getLocalIP is an accessor for the local IP.String valuepublic java.lang.String toString()
toString in class java.util.EventObject