public class TCPConnectionEvent extends EventObject
TCPConnectionEvent
defines an event state object for a
TCP Socket Connection.source
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
String |
getLocalIP()
getLocalIP is an accessor for the local IP. |
int |
getLocalPort()
getLocalPort is an accessor for the local port. |
String |
getRemoteIP()
getRemoteIP is an accessor for the remote IP. |
int |
getRemotePort()
getRemotePort is an accessor for the remote port. |
String |
toString()
Returns a String representation of this EventObject.
|
getSource
public TCPConnectionEvent(IIOPConnection source, String remoteIP, int remotePort, int localPort, 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 string
value representing the local IP addresspublic 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 String getLocalIP()
getLocalIP
is an accessor for the local IP.String
valuepublic String toString()
toString
in class EventObject
Copyright © 2017 JacORB. All rights reserved.