Class TestDatagram

java.lang.Object
  extended byTestDatagram
All Implemented Interfaces:
DatagramUpdateListener

public class TestDatagram
extends java.lang.Object
implements DatagramUpdateListener


Field Summary
protected  DatagramListener dl
           
 
Constructor Summary
TestDatagram()
           
 
Method Summary
 void datagramDetected(java.lang.String msg, long timeDetected)
          This method is called by the DatagramListener class when a datagram is received.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dl

protected DatagramListener dl
Constructor Detail

TestDatagram

public TestDatagram()
Method Detail

datagramDetected

public void datagramDetected(java.lang.String msg,
                             long timeDetected)
Description copied from interface: DatagramUpdateListener
This method is called by the DatagramListener class when a datagram is received. A timestamp indicating the time at which the datagram was received is passed into this method, as well as the actual string contained within the datagram.

Specified by:
datagramDetected in interface DatagramUpdateListener
Parameters:
timeDetected - The time (in milliseconds since January 1, 1970) at which the datagram was received.
msg - The string contained within the datagram.

main

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