15 #ifndef DATAGRAMTCPHEADER_H 16 #define DATAGRAMTCPHEADER_H 18 #include "pandabase.h" 20 #include "netDatagram.h" 22 #include "datagramIterator.h" 23 #include "numeric_types.h" 25 static const int datagram_tcp16_header_size =
sizeof(PN_uint16);
26 static const int datagram_tcp32_header_size =
sizeof(PN_uint32);
43 int get_datagram_size(
int header_size)
const;
44 INLINE
string get_header()
const;
46 bool verify_datagram(
const NetDatagram &datagram,
int header_size)
const;
55 #include "datagramTCPHeader.I" A specific kind of Datagram, especially for sending across or receiving from a network.