Siena Fast Forwarding Documentation (v. 1.13.0)
Public Member Functions | List of all members
siena::MatchMessageHandler Class Referenceabstract

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...
 

Detailed Description

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.

See Also
MatchHandler

Member Function Documentation

virtual bool siena::MatchMessageHandler::output ( if_t  ,
const message  
)
pure virtual

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.