libbgp  0.6
A C++ BGP Library.
Protected Member Functions | Friends | List of all members
libbgp::RouteEventReceiver Class Referenceabstract

The RouteEventReceiver interface. More...

#include <route-event-receiver.h>

Inheritance diagram for libbgp::RouteEventReceiver:
Inheritance graph
[legend]

Protected Member Functions

virtual bool handleRouteEvent (const RouteEvent &ev)=0
 Handle the route event. More...
 

Friends

class RouteEventBus
 

Detailed Description

The RouteEventReceiver interface.

RouteEventReceiver is an interface for RouteEventBus participant. RouteEventBus is usually used by BGP FSMs to communicate with each other. (since every FSM handle a single BGP session, and there might be multiple BGP sessions running at a time) RouteEventBus allow BGP FSMs to pass route add/withdrawn updates to other FSMs. (collision detection is also done through RouteEventBus)

You may implement your own RouteEventReceiver and subscribe it to a event bus to get notifed when route changes.

Examples:
route-event-bus.cc.

Definition at line 32 of file route-event-receiver.h.

Member Function Documentation

◆ handleRouteEvent()

virtual bool libbgp::RouteEventReceiver::handleRouteEvent ( const RouteEvent ev)
protectedpure virtual

Handle the route event.

Parameters
evThe event.
Returns
true Event handled.
false Event not handled.
Examples:
route-event-bus.cc.

The documentation for this class was generated from the following file: