All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class nodeos.ANEPDispatcher

java.lang.Object
   |
   +----nodeos.ANEPDispatcher

public class ANEPDispatcher
extends Object
implements FlowDispatcher
A dispatcher for ANEP version 1

This is a dispatcher for the Active Network Encapsulation Protocol as specified in the RFC draft by the Active Networks Group.

For more information, consult the ANEP homepage

For more information on AN type ids, see the list of assigned numbers.


Variable Index

 o ANTS_ID
 o PLAN_ID
 o SPANNER_ID

Constructor Index

 o ANEPDispatcher()
Class constructor.

Method Index

 o dispatchBuffer(Buffer, int)
Dispatch a given buffer.
 o registerANid(int, FlowDispatcher)
Register a flow dispatcher under a certain id.
 o registerDefault(FlowDispatcher)
Register a flow to which unrecognized packets are to be dispatched.

Variables

 o ANTS_ID
 public static final short ANTS_ID
 o PLAN_ID
 public static final short PLAN_ID
 o SPANNER_ID
 public static final short SPANNER_ID

Constructors

 o ANEPDispatcher
 public ANEPDispatcher()
Class constructor.

Methods

 o dispatchBuffer
 public Buffer dispatchBuffer(Buffer b,
                              int offset)
Dispatch a given buffer. This will look at the AN id in the buffer. If a flow dispatcher has been registered for that id, the buffer will be dispatched to that flow.

If an AN id is not recognized and the discard bit is not set, it will dispatch the buffer to a default flow, if one is registered.

Note that only one flow dispatcher per id is supported.

See FlowDispatcher for a description of the parameters.

See Also:
Buffer, dispatchBuffer
 o registerANid
 public void registerANid(int id,
                          FlowDispatcher fh)
Register a flow dispatcher under a certain id.

Parameters:
id - a integer containing the AN id
fh - the flow dispatcher to be associated with the id
 o registerDefault
 public void registerDefault(FlowDispatcher fh)
Register a flow to which unrecognized packets are to be dispatched.

Parameters:
fh - a flow dispatcher to which unrecognized packets go.

All Packages  Class Hierarchy  This Package  Previous  Next  Index