Panda3D
|
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...
Additional Inherited Members | |
![]() | |
bool | addConnection (Connection connection) |
Adds a new socket to the list of sockets the ConnectionReader will monitor. A datagram that comes in on any of the monitored sockets will be reported. In the case of a ConnectionListener, this adds a new rendezvous socket; any activity on any of the monitored sockets will cause a connection to be accepted. 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. See set_raw_mode(). More... | |
int | getTcpHeaderSize () |
Returns the current setting of TCP header size. See set_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. (If there was an error condition, normally the ConnectionManager would have been informed and closed the connection.) More... | |
bool | isPolling () |
Returns true if the reader is a polling reader, i.e. it has no threads. More... | |
poll () | |
Explicitly polls the available sockets to see if any of them have any noise. This function does nothing unless this is a polling-type ConnectionReader, i.e. it was created with zero threads (and is_polling() will return true). More... | |
bool | removeConnection (Connection connection) |
Removes a socket from the list of sockets being monitored. Returns true if the socket was correctly removed, false if it was not on the list in the first place. More... | |
setRawMode (bool mode) | |
Sets the ConnectionReader into raw mode (or turns off raw mode). In raw mode, datagram headers are not expected; instead, all the data available on the pipe is treated as a single datagram. More... | |
setTcpHeaderSize (int tcp_header_size) | |
Sets the header size of TCP packets. At the present, legal values for this are 0, 2, or 4; this specifies the number of bytes to use encode the datagram length at the start of each TCP datagram. Sender and receiver must independently agree on this. More... | |
shutdown () | |
Terminates all threads cleanly. Normally this is only called by the destructor, but it may be called explicitly before destruction. More... | |
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.