hook for the output function for matching interfaces. More...
#include <forwarding.h>
Public Member Functions | |
virtual | ~MatchMessageHandler () |
virtual destructor | |
virtual bool | output (if_t, const message &)=0 |
output function. More... | |
hook for the output function for matching interfaces.
The matching function of the forwarding table doesn't actually produce any output. Instead, it delegates the processing of matching interfaces to a specialized match handler. This base class defines the interface of such a handler. Users of the forwarding table must implement this interface and pass it to the matching function.
output function.
This function is called within the matching function of the forwarding table. This method is given the interface identifier of the matching interface and a reference to the matching message. This function may explicitly cause the matching function to terminate by returning true.