Panda3D
List of all members
ConnectionListener Class Reference

This is a special kind of ConnectionReader that waits for activity on a rendezvous port and accepts a TCP connection (instead of attempting to read a datagram from the rendezvous port). More...

Inheritance diagram for ConnectionListener:
ConnectionReader QueuedConnectionListener

Additional Inherited Members

- Public Member Functions inherited from ConnectionReader
bool addConnection (Connection connection)
 Adds a new socket to the list of sockets the ConnectionReader will monitor. More...
 
ConnectionManager getManager ()
 Returns a pointer to the ConnectionManager object that serves this ConnectionReader. More...
 
int getNumThreads ()
 Returns the number of threads the ConnectionReader has been created with. More...
 
bool getRawMode ()
 Returns the current setting of the raw mode flag. More...
 
int getTcpHeaderSize ()
 Returns the current setting of TCP header size. More...
 
bool isConnectionOk (Connection connection)
 Returns true if the indicated connection has been added to the ConnectionReader and is being monitored properly, false if it is not known, or if there was some error condition detected on the connection. More...
 
bool isPolling ()
 Returns true if the reader is a polling reader, i.e. More...
 
 poll ()
 Explicitly polls the available sockets to see if any of them have any noise. More...
 
bool removeConnection (Connection connection)
 Removes a socket from the list of sockets being monitored. More...
 
 setRawMode (bool mode)
 Sets the ConnectionReader into raw mode (or turns off raw mode). More...
 
 setTcpHeaderSize (int tcp_header_size)
 Sets the header size of TCP packets. More...
 
 shutdown ()
 Terminates all threads cleanly. More...
 

Detailed Description

This is a special kind of ConnectionReader that waits for activity on a rendezvous port and accepts a TCP connection (instead of attempting to read a datagram from the rendezvous port).

It is itself an abstract class, as it doesn't define what to do with the established connection. See QueuedConnectionListener.