33static const int maximum_udp_datagram = 1500;
46 void operator = (
const Datagram ©);
52 PT(Connection) get_connection()
const;
60 INLINE
bool operator == (
const NetDatagram &other)
const;
61 INLINE
bool operator != (
const NetDatagram &other)
const;
62 INLINE
bool operator < (
const NetDatagram &other)
const;
65 PT(Connection) _connection;
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();}
virtual void clear()
Resets the datagram to empty, in preparation for building up a new datagram.
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound.
const NetAddress & get_address() const
Retrieves the host from which the datagram was read, or to which it is scheduled to be sent.
NetDatagram()
Constructs an empty datagram.
void set_connection(const PT(Connection) &connection)
Specifies the socket to which the datagram should be written.
TypeHandle is the identifier used to differentiate C++ class types.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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(),...