Left: | ||
Right: |
OLD | NEW |
---|---|
1 #include <stdint.h> | 1 #include <stdint.h> |
2 #include <sys/socket.h> | 2 #include <sys/socket.h> |
3 | 3 |
4 namespace ns3 { | 4 namespace ns3 { |
5 | 5 |
6 class Cmsg· | 6 class Cmsg· |
7 { | 7 { |
8 public: | 8 public: |
9 Cmsg (struct msghdr *msg); | 9 Cmsg (struct msghdr *msg); |
10 void Add (int level, int type, int len, const uint8_t *buffer); | 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); | |
11 void Finish (void); | 12 void Finish (void); |
12 private: | 13 private: |
13 struct msghdr *m_msg; | 14 struct msghdr *m_msg; |
14 uint8_t *m_current; | 15 uint8_t *m_current; |
15 int m_len; | 16 int m_len; |
16 }; | 17 }; |
17 | 18 |
18 } // namespace ns3 | 19 } // namespace ns3 |
OLD | NEW |