QueuedConnectionListener
from panda3d.net import 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
- __init__(*args, **kwargs)
- getNewConnection()
C++ Interface: get_new_connection(const QueuedConnectionListener self, PointerTo new_connection) get_new_connection(const QueuedConnectionListener self, PointerTo rendezvous, NetAddress address, PointerTo 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.
*/
- get_new_connection()
C++ Interface: get_new_connection(const QueuedConnectionListener self, PointerTo new_connection) get_new_connection(const QueuedConnectionListener self, PointerTo rendezvous, NetAddress address, PointerTo 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.
*/
- newConnectionAvailable()
C++ Interface: new_connection_available(const QueuedConnectionListener self)
- /**
Returns true if a new connection was recently established; the connection
information may then be retrieved via get_new_connection().
*/
- new_connection_available()
C++ Interface: new_connection_available(const QueuedConnectionListener self)
- /**
Returns true if a new connection was recently established; the connection
information may then be retrieved via get_new_connection().
*/
- upcastToConnectionListener()
C++ Interface: upcast_to_ConnectionListener(const QueuedConnectionListener self)
upcast from QueuedConnectionListener to ConnectionListener
- upcastToQueuedReturnConnectionListenerData()
C++ Interface: upcast_to_QueuedReturn_ConnectionListenerData(const QueuedConnectionListener self)
upcast from QueuedConnectionListener to QueuedReturn< ConnectionListenerData >
- upcast_to_ConnectionListener()
C++ Interface: upcast_to_ConnectionListener(const QueuedConnectionListener self)
upcast from QueuedConnectionListener to ConnectionListener
- upcast_to_QueuedReturn_ConnectionListenerData()
C++ Interface: upcast_to_QueuedReturn_ConnectionListenerData(const QueuedConnectionListener self)
upcast from QueuedConnectionListener to QueuedReturn< ConnectionListenerData >