jtge.engine.net
Class NetworkConnector

java.lang.Object
  extended byjtge.engine.net.NetworkConnector
All Implemented Interfaces:
IConnector

public class NetworkConnector
extends java.lang.Object
implements IConnector

Implements a network connector.

This connector provides a blocking open.

Version:
$Revision: 1.2 $ $Date: 2005/09/10 11:26:47 $
Author:
Mathieu Champlon

Constructor Summary
NetworkConnector(IInputOutputFactory factory, IConnectionObserver observer, java.lang.String host, int port)
          Create a network connector.
 
Method Summary
 void open()
          Open the connector.

Whether this method is blocking or not depends on the implementation.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetworkConnector

public NetworkConnector(IInputOutputFactory factory,
                        IConnectionObserver observer,
                        java.lang.String host,
                        int port)
Create a network connector.

Parameters:
factory - the input/output factory
observer - the connection observer
host - the server host name
port - the listening port
Method Detail

open

public final void open()
Open the connector.

Whether this method is blocking or not depends on the implementation.

Specified by:
open in interface IConnector


Copyright © 2003-2005 . All Rights Reserved.