All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.nodeos.ProtocolLayer.PacketHandler
Summary |
abstract static class ProtocolLayer.PacketHandler extends java.lang.Object { // Fields 1 ProtocolLayer.PacketAddressMask source; // Constructors 1 public PacketHandler(); // Methods 2 abstract ProtocolLayer.PacketBuffer handle(ProtocolLayer.PacketBuffer); public String toString(); }
PacketHandler is an abstract class that is subclassed by the users of protocol layers to handle incoming packets.
Cross Reference |
Fields |
· source | Summary | Top |
ProtocolLayer.PacketAddressMask source
The source mask determines what incoming packets will be sent to the handle method.
Constructors |
· PacketHandler | Summary | Top |
public PacketHandler()
Default constructor
Methods |
· handle | Summary | Top |
abstract ProtocolLayer.PacketBuffer handle(ProtocolLayer.PacketBuffer pb)
The method that will handle incoming packets. The return value is taken as the replacement for the passed in packet. If the handler doesn't have any extra packets to return to the protocol layer it should just return the passed in packet.
· toString | Summary | Top |
public String toString()
- Overrides:
- toString in class Object
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7