33 static const int maximum_udp_datagram = 1500;
46 void operator = (
const Datagram ©);
51 void set_connection(
const PT(
Connection) &connection);
60 INLINE
bool operator == (
const NetDatagram &other)
const;
61 INLINE
bool operator != (
const NetDatagram &other)
const;
62 INLINE
bool operator < (
const NetDatagram &other)
const;
73 static void init_type() {
74 Datagram::init_type();
76 Datagram::get_class_type());
79 return get_class_type();
81 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
A specific kind of Datagram, especially for sending across or receiving from a network.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
virtual void clear()
Resets the datagram to empty, in preparation for building up a new datagram.
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.
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.