cgl.narada.transport.util
Class UDPAcceptor

java.lang.Object
  extended by java.lang.Thread
      extended by cgl.narada.transport.util.UDPAcceptor
All Implemented Interfaces:
Runnable

public class UDPAcceptor
extends Thread

This class should be run as daemon waiting for incoming datagram packet sent to certain ports (80 and 8080 for example) and echo it back to signal here is a receiver and message has been received.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
static int DPACKET_LEN
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
UDPAcceptor(int port)
           
 
Method Summary
static void main(String[] args)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DPACKET_LEN

public static final int DPACKET_LEN
See Also:
Constant Field Values
Constructor Detail

UDPAcceptor

public UDPAcceptor(int port)
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread


For comments and suggestions please send e-mail to The NaradaBrokering Project