org.exolab.core.mipc
Interface MultiplexConnectionServerIfc

All Known Implementing Classes:
MultiplexConnectionServer, MultiplexSSLConnectionServer

public interface MultiplexConnectionServerIfc

Create a listener SSL socket and wait for requests to come in. When a MultiplexConnection is made, a client is notified so that it can initialize channels on the freshly minted MultiplexConnection. This class derives from Thread and is meant to be spawned off as a separate Thread.

Version:
$Revision: 1.1 $
Author:
Jim Mourikis
See Also:
MultiplexConnectionServerIfc

Method Summary
 java.lang.String getHost()
          Return the machines address.
 int getPort()
          Return the port number this server is listening on.
 void run()
          Start the service running.
 void shutdownAll()
          Shutdown all active connections, including the server connection.
 

Method Detail

run

void run()
Start the service running. This call never returns until the service is shutdown. When a connection is made, a new MultiplexConnection is created and spawned off as a separate thread. The new threads are created in the ThreadGroup connections_ so that we can keep track of the active threads.


shutdownAll

void shutdownAll()
                 throws java.io.IOException
Shutdown all active connections, including the server connection.

Throws:
java.io.IOException - If the service reports an error during shutdown.

getPort

int getPort()
Return the port number this server is listening on.

Returns:
int The port number the server is using.

getHost

java.lang.String getHost()
Return the machines address.

Returns:
String The machines Ip address.


Copyright © 1999-2012 The Exolab Group. All Rights Reserved.