org.neo.swarm.util.network.tcp
Interface TcpServiceAPI

All Known Implementing Classes:
NIOTcpServer

public interface TcpServiceAPI

Provides TcpServiceAPI for AsyncSocket data publishing. Works by pushing each connection into a ConnectionPool. The connection pool is async serviced by the thread pool. As each socket is serviced it gets passed onto the appropriate component.

Author:
neil.avery

Method Summary
 void startServer()
          Start server processing incoming requests and wait for it to bind to address
 void stopServer()
          Stop the server from processing and more TCP incoming requests
 

Method Detail

startServer

public void startServer()
                 throws java.lang.Exception
Start server processing incoming requests and wait for it to bind to address

Throws:
java.lang.Exception

stopServer

public void stopServer()
                throws java.lang.Exception
Stop the server from processing and more TCP incoming requests

Throws:
java.lang.Exception


Copyright © 2001-2004 SWARM-ONE -First Generation (S)calable(W)ide(AR)ea(M)esh. All Rights Reserved.