jtge.engine.io
Interface IAcceptor

All Known Implementing Classes:
AsynchronousAcceptor, NetworkAcceptor

public interface IAcceptor

Defines an acceptor.

An acceptor wraps a server listening socket and provides an uniform means to create inputs and outputs.
It is up to the implementation to ensure thread-safety and re-entrance.

Version:
$Revision: 1.4 $ $Date: 2005/08/26 18:09:36 $
Author:
Mathieu Champlon

Method Summary
 void close()
          Close the acceptor.
 void open()
          Open the acceptor and accept connections.
 

Method Detail

open

public void open()
Open the acceptor and accept connections.

Whether this method is blocking or not depends on the implementation.


close

public 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.



Copyright © 2003-2005 . All Rights Reserved.