22 QueuedConnectionListener::
    31 QueuedConnectionListener::
    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;
    95 void QueuedConnectionListener::
    96 connection_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";
 The primary interface to the low-level networking layer in this package.
void shutdown()
Terminates all threads cleanly.
void poll()
Explicitly polls the available sockets to see if any of them have any noise.
bool new_connection_available()
Returns true if a new connection was recently established; the connection information may then be ret...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Represents a single TCP or UDP socket for input or output.
This is a special kind of ConnectionReader that waits for activity on a rendezvous port and accepts a...
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...
Represents a network address to which UDP packets may be sent or to which a TCP socket may be bound.