|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmobnet.ServerSocket
ServerSocket.java MobNet ServerSocket implementation
| Constructor Summary | |
ServerSocket(int port)
Constructor for ServerSocket binds the ServerSocket to the specified port |
|
| Method Summary | |
Socket |
accept()
Listens for a connection to be made to this socket and accepts it. |
void |
addConnection(PortIP pip)
This method is used by the Singleton Manager. |
int |
getPort()
Returns the port which this ServerSocket is bound to. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServerSocket(int port)
throws java.io.IOException
port - The port to which the ServerSocker is bound.
java.io.IOException| Method Detail |
public Socket accept()
throws java.io.IOException
java.io.IOExceptionpublic void addConnection(PortIP pip)
pip - PortIP object which containts the clients port, IP and reference to its Socket.public int getPort()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||