ns3-bgp  0.2
BGP module for ns-3.
bgp-ns3-socket-in.h
Go to the documentation of this file.
1 
11 #ifndef BGP_NS3_SOCKET_IN_H
12 #define BGP_NS3_SOCKET_IN_H
13 #include "bgp.h"
14 #include "ns3/ptr.h"
15 #include "ns3/simple-ref-count.h"
16 #include "ns3/socket.h"
17 
18 namespace ns3 {
19 
24 class BgpNs3SocketIn : public SimpleRefCount<BgpNs3SocketIn> {
25 public:
26  BgpNs3SocketIn(Ptr<BgpNs3Fsm> fsm);
27  void HandleRead(Ptr<Socket> socket);
28 
29 private:
30  Ptr<BgpNs3Fsm> _fsm;
31  uint8_t _recv_buffer[65535];
32 };
33 
34 }
35 
36 #endif // BGP_NS3_SOCKET_IN_H
Simple container class for FSM to receive data from peer.
BgpNs3SocketIn(Ptr< BgpNs3Fsm > fsm)
Construct the container.
Definition: bgp-log.cc:15
void HandleRead(Ptr< Socket > socket)
Handle reading from socket.