|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--amber.type.server.SocketData
This class holds some information on a socket connection established to a remote system.
| Field Summary | |
protected java.net.InetAddress |
localAddress
The address on the server of the connection to this page. |
protected int |
localPort
The port on the server of the connection to this page. |
protected java.net.InetAddress |
remoteAddress
The remote address of the connection to this page. |
protected int |
remotePort
The remote port of the connection to this page. |
| Constructor Summary | |
SocketData()
Default Constructor. |
|
SocketData(java.net.InetAddress remoteAddress,
int remotePort)
Initialising Constructor. |
|
SocketData(java.net.InetAddress remoteAddress,
int remotePort,
java.net.InetAddress localAddress,
int localPort)
Initialising Constructor. |
|
| Method Summary | |
java.net.InetAddress |
getLocalAddress()
Gets the data in the following variable: The address on the server of the connection to this page. |
int |
getLocalPort()
Gets the data in the following variable: The port on the server of the connection to this page. |
java.net.InetAddress |
getRemoteAddress()
Gets the data in the following variable: The remote address of the connection to this page. |
int |
getRemotePort()
Gets the data in the following variable: The remote port of the connection to this page. |
void |
setLocalAddress(java.net.InetAddress data)
Sets the data in the following variable: The address on the server of the connection to this page. |
void |
setLocalPort(int data)
Sets the data in the following variable: The port on the server of the connection to this page. |
void |
setRemoteAddress(java.net.InetAddress data)
Sets the data in the following variable: The remote address of the connection to this page. |
void |
setRemotePort(int data)
Sets the data in the following variable: The remote port of the connection to this page. |
java.lang.String |
toString()
This function returns the String form of the data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.net.InetAddress remoteAddress
protected int remotePort
protected int localPort
protected java.net.InetAddress localAddress
| Constructor Detail |
public SocketData()
public SocketData(java.net.InetAddress remoteAddress,
int remotePort,
java.net.InetAddress localAddress,
int localPort)
remoteAddress - The remote address of the connection to this page.remotePort - The remote port of the connection to this page.localAddress - The address on the server of the connection to this page.localPort - The port on the server of the connection to this page.
public SocketData(java.net.InetAddress remoteAddress,
int remotePort)
remoteAddress - The remote address of the connection to this page.remotePort - The remote port of the connection to this page.| Method Detail |
public java.net.InetAddress getRemoteAddress()
public int getRemotePort()
public int getLocalPort()
public java.net.InetAddress getLocalAddress()
public void setRemoteAddress(java.net.InetAddress data)
data - InetAddress containing the data to set the variable to.public void setRemotePort(int data)
data - int containing the data to set the variable to.public void setLocalPort(int data)
data - int containing the data to set the variable to.public void setLocalAddress(java.net.InetAddress data)
data - InetAddress containing the data to set the variable to.public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||