fr.ove.clientserver
Class MuxConnectionHandler

java.lang.Object
  extended byfr.ove.clientserver.MuxConnectionHandler
All Implemented Interfaces:
ConnectionHandler

public class MuxConnectionHandler
extends java.lang.Object
implements ConnectionHandler

A ConnectionHandler implementation.
This connection handler is used with a server which connects to an another one. The objects sent from a connected client are sent to the server the server whose instance deals the conections is connected.


Constructor Summary
MuxConnectionHandler(java.lang.String hostName, int portNumber)
          The constructor.
 
Method Summary
 void handleConnection(Connection connection)
          Handles the specified connection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuxConnectionHandler

public MuxConnectionHandler(java.lang.String hostName,
                            int portNumber)
The constructor.

Parameters:
hostName - the name of the host the instance connects to.
portNumber - the port number through the instance is connected.
Method Detail

handleConnection

public void handleConnection(Connection connection)
Handles the specified connection.

Specified by:
handleConnection in interface ConnectionHandler
Parameters:
connection - the connection to handle.


Copyright © 1999-2007 Universit?© de Nice Sophia-Antipolis, I3S, Ove SARL, DFKI and Universit?§t des Saarlandes. All Rights Reserved.