org.jacorb.orb.listener
Class TCPConnectionEvent
java.lang.Object
java.util.EventObject
org.jacorb.orb.listener.TCPConnectionEvent
- All Implemented Interfaces:
- java.io.Serializable
public class TCPConnectionEvent
- extends java.util.EventObject
TCPConnectionEvent defines an event state object for a
TCP Socket Connection.
- Version:
- $Id: TCPConnectionEvent.java,v 1.5 2006/07/19 15:29:08 alphonse.bendt Exp $
- Author:
- Nick Cross
- See Also:
- Serialized Form
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
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. |
|
Method Summary |
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. |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TCPConnectionEvent
public 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.
- Parameters:
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 value representing the local IP address
getRemoteIP
public java.lang.String getRemoteIP()
getRemoteIP is an accessor for the remote IP.
- Returns:
- a
String value
getRemotePort
public int getRemotePort()
getRemotePort is an accessor for the remote port.
- Returns:
- a
int value
getLocalPort
public int getLocalPort()
getLocalPort is an accessor for the local port.
- Returns:
- a
int value
getLocalIP
public java.lang.String getLocalIP()
getLocalIP is an accessor for the local IP.
- Returns:
- a
String value
toString
public java.lang.String toString()
- Returns a String representation of this EventObject.
- Overrides:
toString in class java.util.EventObject
- Returns:
- A String representation of this EventObject.