48 _connection(copy._connection),
49 _address(copy._address)
58 Datagram::operator = (copy);
68 Datagram::operator = (copy);
69 _connection = copy._connection;
70 _address = copy._address;
89 _connection = connection;
97 get_connection()
const {
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.
void clear()
Resets the NetAddress to its initial state.
virtual void clear()
Resets the datagram to empty, in preparation for building up a new datagram.
const NetAddress & get_address() const
Retrieves the host from which the datagram was read, or to which it is scheduled to be sent.
PT(Connection) NetDatagram
Retrieves the socket from which the datagram was read, or to which it is scheduled to be written.
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.
Represents a single TCP or UDP socket for input or output.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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.