#include <pStatListener.h>
Inheritance diagram for PStatListener:

Public Member Functions | |
| PStatListener (PStatServer *manager) | |
| bool | add_connection (const PointerTo< Connection > &connection) |
| bool | remove_connection (const PointerTo< Connection > &connection) |
| bool | is_connection_ok (const PointerTo< Connection > &connection) |
| void | poll () |
| ConnectionManager * | get_manager () const |
| bool | is_polling () const |
| int | get_num_threads () const |
| void | set_raw_mode (bool mode) |
| bool | get_raw_mode () const |
| virtual void | receive_datagram (const NetDatagram &datagram) |
| virtual void | connection_opened (const PointerTo< Connection > &rendezvous, const NetAddress &address, const PointerTo< Connection > &new_connection)=0 |
| virtual void | process_incoming_data (SocketInfo *sinfo) |
| void | shutdown () |
| void | clear_manager () |
| void | finish_socket (SocketInfo *sinfo) |
| virtual void | process_incoming_udp_data (SocketInfo *sinfo) |
| virtual void | process_incoming_tcp_data (SocketInfo *sinfo) |
| virtual void | process_raw_incoming_udp_data (SocketInfo *sinfo) |
| virtual void | process_raw_incoming_tcp_data (SocketInfo *sinfo) |
Protected Member Functions | |
| virtual void | connection_opened (const PT(Connection)&rendezvous, const NetAddress &address, const PT(Connection)&new_connection) |
| void | thread_run () |
| SocketInfo * | get_next_available_socket (PRIntervalTime timeout, PRInt32 current_thread_index) |
| void | rebuild_poll_list () |
Static Protected Member Functions | |
| void | thread_start (void *data) |
Protected Attributes | |
| pvector< PRThread * > | Threads |
| pvector< PRPollDesc > | Poll |
| pvector< SocketInfo * > | Sockets |
| bool | _raw_mode |
| bool | _shutdown |
| Threads | _threads |
| PRLock * | _startup_mutex |
| bool | _polling |
| Poll | _poll |
| Sockets | _polled_sockets |
| int | _next_index |
| int | _num_results |
| PRLock * | _select_mutex |
| PRInt32 | _currently_polling_thread |
| Sockets | _sockets |
| Sockets | _removed_sockets |
| bool | _reexamine_sockets |
| PRLock * | _sockets_mutex |
Private Attributes | |
| PStatServer * | _manager |
Friends | |
| class | ConnectionManager |
We need one of these to listen for new connections on the socket(s) added to the PStatServer.
Definition at line 44 of file pStatListener.h.
|
|
Definition at line 34 of file pStatListener.cxx. References _manager, PStatServer::add_reader(), PStatServer::make_monitor(), nout, NULL, reader(), and Connection::set_collect_tcp(). |
|
||||||||||||||||
|
|
|
|
Reimplemented from ConnectionListener. Definition at line 54 of file pStatListener.h. Referenced by PStatListener(). |
1.3