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.
-
ANTS_ID
-
-
PLAN_ID
-
-
SPANNER_ID
-
-
ANEPDispatcher()
- Class constructor.
-
dispatchBuffer(Buffer, int)
- Dispatch a given buffer.
-
registerANid(int, FlowDispatcher)
- Register a flow dispatcher under a certain id.
-
registerDefault(FlowDispatcher)
- Register a flow to which unrecognized packets are to be dispatched.
ANTS_ID
public static final short ANTS_ID
PLAN_ID
public static final short PLAN_ID
SPANNER_ID
public static final short SPANNER_ID
ANEPDispatcher
public ANEPDispatcher()
- Class constructor.
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
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
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