15 #include "queuedConnectionListener.h" 16 #include "config_net.h" 23 QueuedConnectionListener::
34 QueuedConnectionListener::
35 ~QueuedConnectionListener() {
51 return thing_available();
80 if (!get_thing(result)) {
84 rendezvous = result._rendezvous;
85 address = result._address;
86 new_connection = result._new_connection;
114 void QueuedConnectionListener::
115 connection_opened(
const PT(
Connection) &rendezvous,
119 nc._rendezvous = rendezvous;
120 nc._address = address;
121 nc._new_connection = new_connection;
123 if (!enqueue_thing(nc)) {
125 <<
"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...
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...