15 #include "netDatagram.h" 57 _connection(copy._connection),
58 _address(copy._address)
69 Datagram::operator = (copy);
81 Datagram::operator = (copy);
82 _connection = copy._connection;
83 _address = copy._address;
107 _connection = connection;
117 get_connection()
const {
A specific kind of Datagram, especially for sending across or receiving from a network.
Datagram()
Constructs an empty datagram.
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...
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.
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...