edu.nps.moves.disutil
Class UdpServer.Adapter

java.lang.Object
  extended by edu.nps.moves.disutil.UdpServer.Adapter
All Implemented Interfaces:
UdpServer.Listener, java.util.EventListener
Enclosing class:
UdpServer

public class UdpServer.Adapter
extends java.lang.Object
implements UdpServer.Listener

A helper class that implements all methods of the UdpServer.Listener interface with empty methods.

This code is released into the Public Domain. Since this is Public Domain, you don't need to worry about licensing, and you can simply copy this UdpServer.java file to your own package and use it as you like. Enjoy. Please consider leaving the following statement here in this code:

This UdpServer class was copied to this project from its source as found at iHarder.net.

Version:
0.1
Author:
Robert Harder, rharder@users.sourceforge.net
See Also:
UdpServer, UdpServer.Listener, UdpServer.Event

Constructor Summary
UdpServer.Adapter()
           
 
Method Summary
 void udpServerPacketReceived(UdpServer.Event evt)
          Empty call for UdpServer.Listener.udpServerPacketReceived(edu.nps.moves.disutil.UdpServer.Event).
 void udpServerStateChanged(UdpServer.Event evt)
          Empty call for UdpServer.Listener.udpServerStateChanged(edu.nps.moves.disutil.UdpServer.Event).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UdpServer.Adapter

public UdpServer.Adapter()
Method Detail

udpServerStateChanged

public void udpServerStateChanged(UdpServer.Event evt)
Empty call for UdpServer.Listener.udpServerStateChanged(edu.nps.moves.disutil.UdpServer.Event).

Specified by:
udpServerStateChanged in interface UdpServer.Listener
Parameters:
evt - the event
See Also:
UdpServer.State

udpServerPacketReceived

public void udpServerPacketReceived(UdpServer.Event evt)
Empty call for UdpServer.Listener.udpServerPacketReceived(edu.nps.moves.disutil.UdpServer.Event).

Specified by:
udpServerPacketReceived in interface UdpServer.Listener
Parameters:
evt - the event
See Also:
UdpServer.Event.getPacket()