libbgp  0.6
A C++ BGP Library.
Public Member Functions | List of all members
libbgp::BgpOutHandler Class Referenceabstract

The BGP FSM output handler. More...

#include <bgp-out-handler.h>

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

Public Member Functions

virtual bool handleOut (const uint8_t *buffer, size_t length)=0
 The output implementation. More...
 
virtual void notifyStateChange (__attribute__((unused)) int old_state, __attribute__((unused)) int new_state)
 State change notification. Will be call if FSM state changed. More...
 

Detailed Description

The BGP FSM output handler.

BgpOutHandler is used by BGP FSM to write BGP message to peer.

Examples:
route-event-bus.cc, and route-filter.cc.

Definition at line 23 of file bgp-out-handler.h.

Member Function Documentation

◆ handleOut()

virtual bool libbgp::BgpOutHandler::handleOut ( const uint8_t *  buffer,
size_t  length 
)
pure virtual

The output implementation.

Parameters
bufferPointer to the outgoing message buffer.
lengthLength of the message.
Returns
true The output was handled.
false The out was not handled.

Implemented in libbgp::FdOutHandler.

Examples:
route-filter.cc.

◆ notifyStateChange()

virtual void libbgp::BgpOutHandler::notifyStateChange ( __attribute__((unused)) int  old_state,
__attribute__((unused)) int  new_state 
)
inlinevirtual

State change notification. Will be call if FSM state changed.

Parameters
old_stateOld state.
new_stateNew state.

Definition at line 42 of file bgp-out-handler.h.


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