14 #ifndef DATAGRAMTCPHEADER_H 15 #define DATAGRAMTCPHEADER_H 24 static const int datagram_tcp16_header_size =
sizeof(uint16_t);
25 static const int datagram_tcp32_header_size =
sizeof(uint32_t);
40 int get_datagram_size(
int header_size)
const;
41 INLINE std::string get_header()
const;
43 bool verify_datagram(
const NetDatagram &datagram,
int header_size)
const;
A specific kind of Datagram, especially for sending across or receiving from a network.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.