public final class NetworkConnectionInfo
extends java.lang.Object
| Constructor and Description |
|---|
NetworkConnectionInfo(java.lang.String server,
byte[] clientAddr,
int clientPort,
java.lang.String clientInfo)
Creates new instance of network connection information.
|
NetworkConnectionInfo(java.lang.String server,
java.lang.String clientAddr,
int clientPort)
Creates new instance of network connection information.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClient()
Returns the client address and port.
|
byte[] |
getClientAddr()
Returns the client address.
|
java.lang.String |
getClientInfo()
Returns additional client information, or
null. |
int |
getClientPort()
Returns the client port.
|
java.lang.String |
getServer()
Returns the protocol and port of the server.
|
public NetworkConnectionInfo(java.lang.String server,
java.lang.String clientAddr,
int clientPort)
throws java.net.UnknownHostException
server - the protocol and port of the serverclientAddr - the client addressclientPort - the client portjava.net.UnknownHostException - if clientAddr cannot be resolvedpublic NetworkConnectionInfo(java.lang.String server,
byte[] clientAddr,
int clientPort,
java.lang.String clientInfo)
server - the protocol and port of the serverclientAddr - the client addressclientPort - the client portclientInfo - additional client information, or nullpublic java.lang.String getServer()
public byte[] getClientAddr()
public int getClientPort()
public java.lang.String getClientInfo()
null.nullpublic java.lang.String getClient()