java.lang.Object
com.zeroc.Ice.ConnectionInfo
com.zeroc.Ice.IPConnectionInfo
- Direct Known Subclasses:
TCPConnectionInfo
,UDPConnectionInfo
Provides access to the connection details of an IP connection
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
The local address.final int
The local port.final String
The remote address.final int
The remote port.Fields inherited from class com.zeroc.Ice.ConnectionInfo
adapterName, connectionId, incoming, underlying
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
IPConnectionInfo
(boolean incoming, String adapterName, String connectionId, String localAddress, int localPort, String remoteAddress, int remotePort) Constructs an IPConnectionInfo with the specified connection parameters. -
Method Summary
-
Field Details
-
localAddress
The local address. -
localPort
public final int localPortThe local port. -
remoteAddress
The remote address. -
remotePort
public final int remotePortThe remote port.
-
-
Constructor Details
-
IPConnectionInfo
protected IPConnectionInfo(boolean incoming, String adapterName, String connectionId, String localAddress, int localPort, String remoteAddress, int remotePort) Constructs an IPConnectionInfo with the specified connection parameters.- Parameters:
incoming
- whether this connection is incomingadapterName
- the name of the adapter associated with this connectionconnectionId
- the ID of this connectionlocalAddress
- the local IP address of this connectionlocalPort
- the local port number of this connectionremoteAddress
- the remote IP address of this connectionremotePort
- the remote port number of this connection
-