11 #ifndef BGP_NS3_SOCKET_OUT_H 12 #define BGP_NS3_SOCKET_OUT_H 14 #include <libbgp/bgp-out-handler.h> 15 #include "ns3/socket.h" 16 #include "ns3/simple-ref-count.h" 17 #include "ns3/callback.h" 27 BgpNs3SocketOut(Ptr<Socket> socket, Callback<
void, Ptr<Socket>,
int,
int> state_change_cb);
28 bool handleOut(
const uint8_t *buffer,
size_t length);
33 Callback<void, Ptr<Socket>, int,
int> _state_change_cb;
38 #endif //BGP_NS3_SOCKET_OUT_H
bool handleOut(const uint8_t *buffer, size_t length)
Handle output from libbgp. See libbgp document.
void notifyStateChange(int old_state, int new_state)
Handle state change notification from libbgp. See libbgp document.
Simple container class for FSM to send data to peer.
void setStateChangeCallback(Callback< void, Ptr< Socket >, int, int > state_change_cb)
Set callback to use when FSM change state.
BgpNs3SocketOut(Ptr< Socket > socket, Callback< void, Ptr< Socket >, int, int > state_change_cb)
Construct the container.