asyncudp
Class ASyncUDP

java.lang.Object
  extended by asyncudp.ASyncUDP

public class ASyncUDP
extends java.lang.Object

A library for performing unreliable data transfer over UDP without any congestion or flow control. If these properties are desired, the PonyRide library should be used instead. 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
ASyncUDP()
          Creates a new ASyncUDP instance to receive UDP/IP datagrams.
ASyncUDP(int _port_num)
          Creates a new ASyncUDP instance to both send and receive UDP/IP datagrams.
 
Method Summary
 ASyncUDPParams getParams()
          Returns the parameters for this ASyncUDP instance.
 QueueManager getQueueManager()
          Returns the QueueManager through which message queues can be managed.
 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

ASyncUDP

public ASyncUDP()
Creates a new ASyncUDP instance to receive UDP/IP datagrams. This instance will not listen for incoming UDP datagrams on any port.


ASyncUDP

public ASyncUDP(int _port_num)
Creates a new ASyncUDP instance to both send and receive UDP/IP datagrams. If the argument port_num is less than 0, then this instance will not listen for incoming UDP datagrams on any port, and can only send datagrams.

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

getService

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

Returns:
the ASyncService for this ASyncUDP instance

getQueueManager

public QueueManager getQueueManager()
Returns the QueueManager through which message queues can be managed.

Returns:
the QueueManager for this ASyncUDP instance

getParams

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

Returns:
the parameters for this ASyncUDP instance