Class UDPBench

java.lang.Object
  extended by UDPBench

public class UDPBench
extends java.lang.Object

This is a UDP communication benchmark based on TCPBench.java. It makes use of either blocking or nonblocking datagram sockets, both with and without select(). It uses specific packet sizes and sends bursts of packets in the hope that at least some packets in the burst will be received, considering that UDP is unreliable. However, not all combinations of packet and burst sizes may work, as no attempt to retransmit data is made. This is meant more as a low-level benchmark and demonstration of the NonblockingDatagramSocket class than anything else.


Constructor Summary
UDPBench()
           
 
Method Summary
static void main(java.lang.String[] args)
           
static void usage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDPBench

public UDPBench()
Method Detail

usage

public static void usage()

main

public static void main(java.lang.String[] args)