libbgp
0.6
A C++ BGP Library.
|
The RouteEventReceiver interface. More...
#include <route-event-receiver.h>
Protected Member Functions | |
virtual bool | handleRouteEvent (const RouteEvent &ev)=0 |
Handle the route event. More... | |
Friends | |
class | RouteEventBus |
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.
Definition at line 32 of file route-event-receiver.h.
|
protectedpure virtual |
Handle the route event.
ev | The event. |