21 RecentConnectionReader::
35 RecentConnectionReader::
36 ~RecentConnectionReader() {
93 void RecentConnectionReader::
95 if (net_cat.is_debug()) {
97 <<
"Received datagram of " << datagram.
get_length()
102 _datagram = datagram;
A specific kind of Datagram, especially for sending across or receiving from a network.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
The primary interface to the low-level networking layer in this package.
void shutdown()
Terminates all threads cleanly.
bool get_data(NetDatagram &result)
If a previous call to data_available() returned true, this function will return the datagram that has...
This is an abstract base class for a family of classes that listen for activity on a socket and respo...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
bool data_available()
Returns true if a datagram is available on the queue; call get_data() to extract the datagram.
Similar to MutexHolder, but for a light mutex.
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 ...
size_t get_length() const
Returns the number of bytes in the datagram.