Conexus::Server Class Reference
[ConexusConexusConexus]

#include <conexus/server.h>

Inheritance diagram for Conexus::Server:

Inheritance graph
[legend]
List of all members.

Detailed Description

Author:
Rick L Vinyard Jr


Public Types

typedef ConexusPointer< Serverpointer

Public Member Functions

virtual void start ()
virtual void start (bool use_dispatcher)
virtual void stop ()
virtual void set_responsiveness (long r)
 Sets the responsiveness to add_*, remove_* and stop commands in microseconds; lower is more responsive; larger is less responsive; default is 500000 microseconds (or 500 ms).
virtual long responsiveness ()
 Returns the server responsiveness level.
virtual bool is_running ()
virtual void start ()
virtual void start (bool use_dispatcher)
virtual void stop ()
virtual void set_responsiveness (long r)
 Sets the responsiveness to add_*, remove_* and stop commands in microseconds; lower is more responsive; larger is less responsive; default is 500000 microseconds (or 500 ms).
virtual long responsiveness ()
 Returns the server responsiveness level.
virtual bool is_running ()
virtual const std::string & object_type ()
virtual void start ()
virtual void start (bool use_dispatcher)
virtual void stop ()
virtual void set_responsiveness (long r)
 Sets the responsiveness to add_*, remove_* and stop commands in microseconds; lower is more responsive; larger is less responsive; default is 500000 microseconds (or 500 ms).
virtual long responsiveness ()
 Returns the server responsiveness level.
virtual bool is_running ()
virtual const std::string & object_type ()

Protected Member Functions

virtual void service_thread_main ()=0
virtual void service_thread_main ()=0
virtual void service_thread_main ()=0

Protected Attributes

Glib::Thread * m_thread
bool m_terminate
bool m_running
Glib::Dispatcher * m_dispatcher
bool m_use_dispatcher
timeval m_timeval
Glib::Thread * m_thread
Glib::Dispatcher * m_dispatcher
timeval m_timeval
Glib::Thread * m_thread
Glib::Dispatcher * m_dispatcher
timeval m_timeval


Member Function Documentation

void Conexus::Server::set_responsiveness ( long  r  )  [virtual]

Sets the responsiveness to add_*, remove_* and stop commands in microseconds; lower is more responsive; larger is less responsive; default is 500000 microseconds (or 500 ms).

In general this refers to the timeout period of the select() call used internally. Each cycle of the server I/O thread acquires several mutex locks at the beginning of the cycle and releases them at the end of the cycle.

This value shortens the cycle period, thereby making the server more responsive to commands at the cost of increasing overhead.

virtual void Conexus::Server::set_responsiveness ( long  r  )  [virtual]

Sets the responsiveness to add_*, remove_* and stop commands in microseconds; lower is more responsive; larger is less responsive; default is 500000 microseconds (or 500 ms).

In general this refers to the timeout period of the select() call used internally. Each cycle of the server I/O thread acquires several mutex locks at the beginning of the cycle and releases them at the end of the cycle.

This value shortens the cycle period, thereby making the server more responsive to commands at the cost of increasing overhead.

virtual void Conexus::Server::set_responsiveness ( long  r  )  [virtual]

Sets the responsiveness to add_*, remove_* and stop commands in microseconds; lower is more responsive; larger is less responsive; default is 500000 microseconds (or 500 ms).

In general this refers to the timeout period of the select() call used internally. Each cycle of the server I/O thread acquires several mutex locks at the beginning of the cycle and releases them at the end of the cycle.

This value shortens the cycle period, thereby making the server more responsive to commands at the cost of increasing overhead.


The documentation for this class was generated from the following files:
Generated on Tue Mar 13 19:55:00 2007 by  doxygen 1.5.1