|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jtge.engine.net.NetworkAcceptor
Implements a network acceptor.
This acceptor provides a blocking open and a non-blocking close.
Constructor Summary | |
NetworkAcceptor(IInputOutputFactory factory,
IConnectionObserver observer,
int port)
Create a network acceptor. |
Method Summary | |
void |
close()
Close the acceptor. Whether this method is blocking or not depends on the implementation. Calling this method while the acceptor is not open should not generate a failure. |
void |
open()
Open the acceptor and accept connections. Whether this method is blocking or not depends on the implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NetworkAcceptor(IInputOutputFactory factory, IConnectionObserver observer, int port)
factory
- the input/output factoryobserver
- the connection observerport
- the listening portMethod Detail |
public final void open()
Whether this method is blocking or not depends on the implementation.
open
in interface IAcceptor
public final void close()
Whether this method is blocking or not depends on the implementation.
Calling this method while the acceptor is not open should not generate a failure.
close
in interface IAcceptor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |