ns-3 Direct Code Execution
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cmsg.h
Go to the documentation of this file.
1 #include <stdint.h>
2 #include <sys/socket.h>
3 
4 namespace ns3 {
5 
6 class Cmsg
7 {
8 public:
9  Cmsg (struct msghdr *msg);
10  void Add (int level, int type, int len, const uint8_t *buffer);
11  int GetNext (int *level, int *type, int *len, uint8_t **buffer);
12  void Finish (void);
13 private:
14  struct msghdr *m_msg;
15  uint8_t *m_current;
16  int m_len;
17 };
18 
19 } // namespace ns3