jtge.engine.net
Class ServerImp

java.lang.Object
  extended byjtge.engine.net.ServerImp
All Implemented Interfaces:
IClosable, IServer

public class ServerImp
extends java.lang.Object
implements IServer

Implements the server logics.

Version:
$Revision: 1.2 $ $Date: 2005/09/04 20:56:28 $
Author:
Mathieu Champlon

Constructor Summary
ServerImp(IConnectionObserver observer, IInputOutputFactory factory)
          Create a controller.
 
Method Summary
 void close()
          Perform a close operation.
 void open(int port)
          Open the server listening on a given port.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerImp

public ServerImp(IConnectionObserver observer,
                 IInputOutputFactory factory)
Create a controller.

Parameters:
observer - the connection observer
factory - the input/output factory
Method Detail

open

public final void open(int port)
Open the server listening on a given port.

Specified by:
open in interface IServer
Parameters:
port - the host port

close

public final void close()
Perform a close operation.

Specified by:
close in interface IClosable


Copyright © 2003-2005 . All Rights Reserved.