#include <datagramTCPHeader.h>
Public Member Functions | |
DatagramTCPHeader (const NetDatagram &datagram) | |
This constructor creates a header based on an already-constructed NetDatagram. | |
DatagramTCPHeader (const void *data) | |
This constructor decodes a header from a block of data of length datagram_tcp_header_size, presumably just read from a socket. | |
int | get_datagram_size () const |
Returns the number of bytes in the associated datagram. | |
string | get_header () const |
Returns a pointer to a block of data of length datagram_tcp_header_size, which can be written to the network as the header information. | |
bool | verify_datagram (const NetDatagram &datagram) const |
Verifies that the indicated datagram has the appropriate length. | |
Private Attributes | |
NetDatagram | _header |
This is similar to DatagramUDPHeader, except it does not include a checksum, since this is unnecessary on UDP.
Definition at line 52 of file datagramTCPHeader.h.
|
This constructor creates a header based on an already-constructed NetDatagram.
Definition at line 40 of file datagramTCPHeader.cxx. |
|
This constructor decodes a header from a block of data of length datagram_tcp_header_size, presumably just read from a socket.
Definition at line 63 of file datagramTCPHeader.cxx. |
|
Returns the number of bytes in the associated datagram.
Definition at line 34 of file datagramTCPHeader.I. References _header, Datagram::get_message(), and INLINE. |
|
Returns a pointer to a block of data of length datagram_tcp_header_size, which can be written to the network as the header information.
Definition at line 52 of file datagramTCPHeader.I. |
|
Verifies that the indicated datagram has the appropriate length. Returns true if it matches, false otherwise. Definition at line 79 of file datagramTCPHeader.cxx. |
|
Definition at line 66 of file datagramTCPHeader.h. Referenced by DatagramUDPHeader::DatagramUDPHeader(), and get_datagram_size(). |