18 #include "pandabase.h"
20 #include "connection.h"
21 #include "netAddress.h"
24 #include "pointerTo.h"
34 static const int maximum_udp_datagram = 1500;
49 void operator = (
const Datagram ©);
54 void set_connection(
const PT(
Connection) &connection);
64 INLINE
bool operator == (
const NetDatagram &other)
const;
65 INLINE
bool operator != (
const NetDatagram &other)
const;
66 INLINE
bool operator < (
const NetDatagram &other)
const;
77 static void init_type() {
78 Datagram::init_type();
79 register_type(_type_handle,
"NetDatagram",
80 Datagram::get_class_type());
83 return get_class_type();
85 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
91 #include "netDatagram.I"
A specific kind of Datagram, especially for sending across or receiving from a network.
virtual void clear()
Resets the datagram to empty, in preparation for building up a new datagram.
TypeHandle is the identifier used to differentiate C++ class types.
Represents a single TCP or UDP socket for input or output.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound...