QueuedConnectionListener

class QueuedConnectionListener

Bases: ConnectionListener, QueuedReturn< ConnectionListenerData >

This flavor of ConnectionListener will queue up all of the TCP connections it established for later detection by the client code.

Inheritance diagram

digraph inheritancea592c5a476 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "ConnectionListener" [URL="acron.net.ConnectionListener.html#acron.net.ConnectionListener",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ConnectionReader" -> "ConnectionListener" [arrowsize=0.75,style=""]; "ConnectionReader" [URL="acron.net.ConnectionReader.html#acron.net.ConnectionReader",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ConnectionReader" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "QueuedConnectionListener" [URL="acron.net.QueuedConnectionListener.html#acron.net.QueuedConnectionListener",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "ConnectionListener" -> "QueuedConnectionListener" [arrowsize=0.75,style=""]; "QueuedReturn_ConnectionListenerData" -> "QueuedConnectionListener" [arrowsize=0.75,style=""]; "QueuedReturn_ConnectionListenerData" [URL="acron.net.QueuedReturn_ConnectionListenerData.html#acron.net.QueuedReturn_ConnectionListenerData",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top"]; "DTOOL_SUPER_BASE" -> "QueuedReturn_ConnectionListenerData" [arrowsize=0.75,style=""]; }
QueuedConnectionListener.__init__()
QueuedConnectionListener.get_new_connection()

If a previous call to new_connection_available() returned true, this function will return information about the newly established connection.

The rendezvous parameter is the particular rendezvous socket this new connection originally communicated with; it is provided in case the ConnectionListener was monitorind more than one and you care which one it was. The address parameter is the net address of the new client, and new_connection is the socket of the newly established connection.

The return value is true if a connection was successfully returned, or false if there was, in fact, no new connection. (This may happen if there are multiple threads accessing the QueuedConnectionListener).

This flavor of get_new_connection() simply returns a new connection, assuming the user doesn’t care about the rendezvous socket that originated it or the address it came from.

QueuedConnectionListener.new_connection_available()

Returns true if a new connection was recently established; the connection information may then be retrieved via get_new_connection().