22QueuedConnectionListener::
31QueuedConnectionListener::
32~QueuedConnectionListener() {
45 return thing_available();
67 if (!get_thing(result)) {
71 rendezvous = result._rendezvous;
72 address = result._address;
73 new_connection = result._new_connection;
95void QueuedConnectionListener::
96connection_opened(
const PT(
Connection) &rendezvous,
100 nc._rendezvous = rendezvous;
101 nc._address = address;
102 nc._new_connection = new_connection;
104 if (!enqueue_thing(nc)) {
106 <<
"QueuedConnectionListener queue full!\n";
This is a special kind of ConnectionReader that waits for activity on a rendezvous port and accepts a...
The primary interface to the low-level networking layer in this package.
void poll()
Explicitly polls the available sockets to see if any of them have any noise.
void shutdown()
Terminates all threads cleanly.
Represents a single TCP or UDP socket for input or output.
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound.
bool get_new_connection(PT(Connection) &rendezvous, NetAddress &address, PT(Connection) &new_connection)
If a previous call to new_connection_available() returned true, this function will return information...
bool new_connection_available()
Returns true if a new connection was recently established; the connection information may then be ret...
This is the implementation of a family of things that queue up their return values for later retrieva...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.