|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfr.ove.clientserver.SocketServer
A socket server.
| Constructor Summary | |
SocketServer()
The default constructor. |
|
SocketServer(int portNumber,
int maxSocket)
The constructor. |
|
| Method Summary | |
void |
addSocketServerListener(SocketServerListener listener)
Registers a listener to the instance. |
void |
fireSocketServerEvent(SocketServerEvent evt)
Fires an event to the registered listeners of the instance. |
void |
removeSocketServerListener(SocketServerListener listener)
Removes a registered listener from the instance. |
void |
run()
Run the socket server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SocketServer()
throws java.io.IOException
public SocketServer(int portNumber,
int maxSocket)
throws java.io.IOException
portNumber - the port number used on the host to run the socket server.maxSocket - the maximu number of socket created allowed.| Method Detail |
public void addSocketServerListener(SocketServerListener listener)
throws java.util.TooManyListenersException
listener - the listener to register.
java.util.TooManyListenersExceptionpublic void removeSocketServerListener(SocketServerListener listener)
listener - the listener to remove.public void fireSocketServerEvent(SocketServerEvent evt)
evt - the event to fire.public void run()
run in interface java.lang.Runnable
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||