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;
97get_connection()
const {
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 ...
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.
void clear()
Resets the NetAddress to its initial state.
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.
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.