|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectprimitive.PortIP
PortIP.java This class provides a representation of a request to connect to a ServerSocket. This 'PIP' object is sent to a ServerSocket and contains information on the client IP and Port so a reciprocal Socket can be set up.
| Constructor Summary | |
PortIP(int port,
java.lang.String IP,
Socket sock)
Constructor to create a 'PIP' Object. |
|
| Method Summary | |
java.lang.String |
getIP()
Returns the IP Address to which the PIP is addressed to. |
int |
getPort()
Return the port number. |
Socket |
getSocket()
Returns the Socket which initiated the connection. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PortIP(int port,
java.lang.String IP,
Socket sock)
port - The port of the ServerSocket we wish to connect to.IP - The IP address of the ServerSocket we wish to connect to.sock - The Socket initiating the connection.| Method Detail |
public Socket getSocket()
public int getPort()
public java.lang.String getIP()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||