|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectprimitive.SockHost
SockHost.java This class encapsulates a Socket into an Object which gives easy access to its destination IP address and port.
| Constructor Summary | |
SockHost(Socket sock,
int port,
java.lang.String destIP)
Contstructor for class SockHost which takes the Socket to be represented the port of the Socket and the destination IP of the Socket. |
|
| Method Summary | |
java.lang.String |
getdestIP()
Get the destination IP of the Socket represented |
int |
getPort()
Get the port of the Socket represented |
Socket |
getSocket()
Get the Socket represented by this class. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SockHost(Socket sock,
int port,
java.lang.String destIP)
sock - The Socket to be represented.port - The port of the Socket.destIP - The destination IP of the Socket.| Method Detail |
public int getPort()
public java.lang.String getdestIP()
public Socket getSocket()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||