14#ifndef QUEUEDCONNECTIONLISTENER_H
15#define QUEUEDCONNECTIONLISTENER_H
34 PT(Connection) _rendezvous;
36 PT(Connection) _new_connection;
45class EXPCL_PANDA_NET QueuedConnectionListener :
public ConnectionListener,
46 public QueuedReturn<ConnectionListenerData> {
48 explicit QueuedConnectionListener(ConnectionManager *manager,
int num_threads);
49 virtual ~QueuedConnectionListener();
54 PT(Connection) &new_connection);
58 virtual void connection_opened(
const PT(Connection) &rendezvous,
60 const PT(Connection) &new_connection);
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.