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

The FdOutHandler class. More...

#include <fd-out-handler.h>

Inheritance diagram for libbgp::FdOutHandler:
Inheritance graph
[legend]
Collaboration diagram for libbgp::FdOutHandler:
Collaboration graph
[legend]

Public Member Functions

 FdOutHandler (int fd)
 Construct a new Fd Out Handler:: Fd Out Handler object. More...
 
bool handleOut (const uint8_t *buffer, size_t length)
 The output implementation. More...
 
- Public Member Functions inherited from libbgp::BgpOutHandler
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 FdOutHandler class.

FdOutHandler is a simple BgpOutHandler that write output to a file descriptor

Examples:
peer-and-print.cc, and route-server.cc.

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

Constructor & Destructor Documentation

◆ FdOutHandler()

libbgp::FdOutHandler::FdOutHandler ( int  fd)

Construct a new Fd Out Handler:: Fd Out Handler object.

Parameters
fdFile descriptor to write to.

Definition at line 21 of file fd-out-handler.cc.

Member Function Documentation

◆ handleOut()

bool libbgp::FdOutHandler::handleOut ( const uint8_t *  buffer,
size_t  length 
)
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.

Implements libbgp::BgpOutHandler.

Definition at line 25 of file fd-out-handler.cc.


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