libbgp  0.6
A C++ BGP Library.
bgp-out-handler.h
Go to the documentation of this file.
1 
11 #ifndef BGP_OUT_HANDLEER_H_
12 #define BGP_OUT_HANDLEER_H_
13 #include <stdint.h>
14 #include <unistd.h>
15 namespace libbgp {
16 
24 public:
25 
34  virtual bool handleOut(const uint8_t *buffer, size_t length) = 0;
35 
42  virtual void notifyStateChange(__attribute__((unused)) int old_state, __attribute__((unused)) int new_state) {}
43  virtual ~BgpOutHandler() {}
44 };
45 
58 }
59 
60 #endif // BGP_OUT_HANDLEER_H_
The BGP FSM output handler.
Definition: bgp-afi.h:14
virtual bool handleOut(const uint8_t *buffer, size_t length)=0
The output implementation.
virtual void notifyStateChange(__attribute__((unused)) int old_state, __attribute__((unused)) int new_state)
State change notification. Will be call if FSM state changed.