|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.clientserver.Server
A server.
After its instanciation, don't forget to set the connection handler. Otherwise,
clients could not connect.
| Constructor Summary | |
Server()
The default constructor. |
|
Server(int portNumber,
int maxConnection)
The constructor. |
|
| Method Summary | |
ConnectionHandler |
getConnectionHandler()
Returns the connection handler of the server. |
void |
setConnectionHandler(ConnectionHandler handler)
Sets the connection handler for the server. |
void |
socketAccepted(SocketServerEvent evt)
Accept the socket encapsulated inside the event fired by the socket server listenned. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Server()
throws java.io.IOException
public Server(int portNumber,
int maxConnection)
throws java.io.IOException
portNumber - the port number used on the host to run the server.| Method Detail |
public void setConnectionHandler(ConnectionHandler handler)
handler - the connection handler.public ConnectionHandler getConnectionHandler()
public void socketAccepted(SocketServerEvent evt)
socketAccepted in interface SocketServerListenerevt - the event fired by the socket server listenned.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||