Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PStatListener Class Reference

This is the TCP rendezvous socket listener. More...

#include <pStatListener.h>

Inheritance diagram for PStatListener:

ConnectionListener ConnectionReader List of all members.

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 ()
ConnectionManagerget_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

Detailed Description

This is the TCP rendezvous socket listener.

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.


Constructor & Destructor Documentation

PStatListener::PStatListener PStatServer manager  ) 
 

Definition at line 34 of file pStatListener.cxx.

References _manager, PStatServer::add_reader(), PStatServer::make_monitor(), nout, NULL, reader(), and Connection::set_collect_tcp().


Member Function Documentation

virtual void PStatListener::connection_opened const PT(Connection)&  rendezvous,
const NetAddress address,
const PT(Connection)&  new_connection
[protected, virtual]
 


Member Data Documentation

PStatServer* PStatListener::_manager [private]
 

Reimplemented from ConnectionListener.

Definition at line 54 of file pStatListener.h.

Referenced by PStatListener().


The documentation for this class was generated from the following files:
Generated on Fri May 2 03:27:50 2003 for Panda-Tool by doxygen1.3