org.jacorb.orb.listener

Class TCPConnectionEvent

public class TCPConnectionEvent extends 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

Constructor Summary
TCPConnectionEvent(IIOPConnection source, String remoteIP, int remotePort, int localPort, String localIP)
Creates a new TCPConnectionEvent instance passing in the source of the event and relevant connection data.
Method Summary
StringgetLocalIP()
getLocalIP is an accessor for the local IP.
intgetLocalPort()
getLocalPort is an accessor for the local port.
StringgetRemoteIP()
getRemoteIP is an accessor for the remote IP.
intgetRemotePort()
getRemotePort is an accessor for the remote port.
StringtoString()
Returns a String representation of this EventObject.

Constructor Detail

TCPConnectionEvent

public TCPConnectionEvent(IIOPConnection source, String remoteIP, int remotePort, int localPort, String localIP)
Creates a new TCPConnectionEvent instance passing in the source of the event and relevant connection data.

Parameters: source an IIOPConnection value remoteIP 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 value localIP a value representing the local IP address

Method Detail

getLocalIP

public String getLocalIP()
getLocalIP is an accessor for the local IP.

Returns: a String value

getLocalPort

public int getLocalPort()
getLocalPort is an accessor for the local port.

Returns: a int value

getRemoteIP

public 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

toString

public String toString()
Returns a String representation of this EventObject.

Returns: A String representation of this EventObject.