asynctcp
Class ASyncTCP

java.lang.Object
  extended by asynctcp.ASyncTCP

public class ASyncTCP
extends java.lang.Object

A library for performing reliable data transfer over TCP. This library is to be used with the ASync library, which allows high-performance network I/O over a single thread.

Author:
Michael Parker

Constructor Summary
ASyncTCP()
          Creates a new ASyncTCP instance to manage locally established TCP/IP connections.
ASyncTCP(int _port_num)
          Creates a new ASyncTCP instance to manage both locally and remotely established TCP/IP connections.
 
Method Summary
 ConnectionManager getConnectionManager()
          Returns the ConnectionManager through which incoming and outgoing connections can be managed.
 ASyncTCPParams getParams()
          Returns the parameters for this ASyncTCP instance.
 ASyncService getService()
          Returns the ASyncService required to register with a ASyncProvider instance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASyncTCP

public ASyncTCP()
Creates a new ASyncTCP instance to manage locally established TCP/IP connections. This instance will not listen for incoming TCP connections on any port.


ASyncTCP

public ASyncTCP(int _port_num)
Creates a new ASyncTCP instance to manage both locally and remotely established TCP/IP connections. If the argument port_num is less than 0, then this instance will not listen for incoming TCP connections on any port, and will only manage locally established connections.

Parameters:
_port_num - the port number to listen for new connections on
Method Detail

getService

public ASyncService getService()
Returns the ASyncService required to register with a ASyncProvider instance

Returns:
the ASyncService for this ASyncTCP instance

getConnectionManager

public ConnectionManager getConnectionManager()
Returns the ConnectionManager through which incoming and outgoing connections can be managed.

Returns:
the ConnectionManager for this ASyncTCP instance

getParams

public ASyncTCPParams getParams()
Returns the parameters for this ASyncTCP instance. Note that these parameters can only be changed if this instance is not running.

Returns:
the parameters for this ASyncTCP instance