tcMenuJavaAPI
Public Member Functions | List of all members
com.thecoderscorner.menu.remote.mgrclient.SocketServerConnectionManager Class Reference
Inheritance diagram for com.thecoderscorner.menu.remote.mgrclient.SocketServerConnectionManager:
com.thecoderscorner.menu.mgr.ServerConnectionManager

Public Member Functions

 SocketServerConnectionManager (MenuCommandProtocol protocol, ScheduledExecutorService service, int port, Clock clock)
 
List< ServerConnectiongetServerConnections ()
 
void start (NewServerConnectionListener listener)
 
void stop ()
 

Member Function Documentation

◆ getServerConnections()

List<ServerConnection> com.thecoderscorner.menu.remote.mgrclient.SocketServerConnectionManager.getServerConnections ( )
Returns
a list of all current connections for this manager

Implements com.thecoderscorner.menu.mgr.ServerConnectionManager.

◆ start()

void com.thecoderscorner.menu.remote.mgrclient.SocketServerConnectionManager.start ( NewServerConnectionListener  listener)

Start the manager up so it starts to accept connections, the listener will be called for each new connection.

Parameters
listenerwill receive an event when a new connection is made

Implements com.thecoderscorner.menu.mgr.ServerConnectionManager.

◆ stop()

void com.thecoderscorner.menu.remote.mgrclient.SocketServerConnectionManager.stop ( )

Stop the manager

Exceptions
Exceptionif unable to stop correctly

Implements com.thecoderscorner.menu.mgr.ServerConnectionManager.


The documentation for this class was generated from the following file: