jtge.engine.net
Class ClientImp

java.lang.Object
  extended byjtge.engine.net.ClientImp
All Implemented Interfaces:
IClient, IClosable

public class ClientImp
extends java.lang.Object
implements IClient

Implements the client logics.

Version:
$Revision: 1.2 $ $Date: 2005/09/10 23:59:42 $
Author:
Mathieu Champlon

Constructor Summary
ClientImp(IConnectionObserver observer, IInputOutputFactory factory)
          Create a controller.
 
Method Summary
 void close()
          Perform a close operation.
 void open(java.lang.String host, int port)
          Connect the client to a server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientImp

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

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

open

public final void open(java.lang.String host,
                       int port)
Connect the client to a server.

Specified by:
open in interface IClient
Parameters:
host - the host name
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.