eap.freeciv
Class PacketDumper

java.lang.Object
  extended byeap.freeciv.PacketDumper
All Implemented Interfaces:
PacketListener

public class PacketDumper
extends Object
implements PacketListener


Constructor Summary
PacketDumper(String tag)
           
 
Method Summary
 void receivePacket(Packet packet)
          A PacketConnection calls this method for every registered listener every time it reads a packet from its underlying socket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacketDumper

public PacketDumper(String tag)
Method Detail

receivePacket

public void receivePacket(Packet packet)
Description copied from interface: PacketListener
A PacketConnection calls this method for every registered listener every time it reads a packet from its underlying socket. Listeners should not modify the packet unless they can be sure noone else is listening. This is because a PacketConnection does not guarantee the order in which it passes packets to its registered listeners.

Specified by:
receivePacket in interface PacketListener