|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.engine.net.Peer jtge.engine.net.Server
Implements a server.
Constructor Summary | |
Server(IConsumer consumer,
IInputOutputImpFactory factory)
Create a server. |
|
Server(IConsumer consumer,
IInputOutputImpFactory factory,
IUserManager manager)
Create a server requiring user identification. |
Method Summary | |
protected void |
onClose()
Perform custom close. |
void |
open(int port)
Open the server listening on a given port. |
void |
register(IServerView view)
Register a view to receive server events. |
Methods inherited from class jtge.engine.net.Peer |
close, handle, register, register, register |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface jtge.engine.net.IClosable |
close |
Constructor Detail |
public Server(IConsumer consumer, IInputOutputImpFactory factory)
consumer
- the consumer to handle received commandsfactory
- the input-output implementation factorypublic Server(IConsumer consumer, IInputOutputImpFactory factory, IUserManager manager)
consumer
- the consumer to handle received commandsfactory
- the input-output implementation factorymanager
- the user managerMethod Detail |
public final void register(IServerView view)
view
- the view to registerpublic final void open(int port)
open
in interface IServer
port
- the host portprotected final void onClose()
onClose
in class Peer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |