Conexus::EndpointServer Class Reference

#include <conexus/endpointserver.h>

Inheritance diagram for Conexus::EndpointServer:

Inheritance graph
[legend]
List of all members.

Detailed Description

The EndpointServer generates Endpoints as a result of operation.

This is in contrast to the DataServer which generates data as a result of operation.

The canonical example of an EndpointServer is a TCP server which as a result of operation generates accepted TCP connections. Thus, the TCP server is the EndpointServer, while the accepted TCP connections are DataServers.

Author:
Rick L Vinyard Jr <rvinyard@cs.nmsu.edu>


Public Types

typedef ConexusPointer< EndpointServerpointer

Public Member Functions

virtual void start ()
 Starts the EndpointServer in a threaded mode.
virtual void start (bool use_dispatcher)
 Starts the EndpointServer in a threaded mode and explicitly determines whether a dispatcher will be used, possibly overriding the default value.
virtual void stop ()
 Stops the EndpointServer.
sigc::signal< void, Endpoint::pointersignal_new_endpoint ()
 Connect to this signal to receive notifications of new endpoints created by this endpoint server.
virtual void start ()
 Starts the EndpointServer in a threaded mode.
virtual void start (bool use_dispatcher)
 Starts the EndpointServer in a threaded mode and explicitly determines whether a dispatcher will be used, possibly overriding the default value.
virtual void stop ()
 Stops the EndpointServer.
sigc::signal< void, Endpoint::pointersignal_new_endpoint ()
 Connect to this signal to receive notifications of new endpoints created by this endpoint server.
virtual const std::string & object_type ()
 Conexus library string type identifier.
virtual void start ()
 Starts the EndpointServer in a threaded mode.
virtual void start (bool use_dispatcher)
 Starts the EndpointServer in a threaded mode and explicitly determines whether a dispatcher will be used, possibly overriding the default value.
virtual void stop ()
 Stops the EndpointServer.
sigc::signal< void, Endpoint::pointersignal_new_endpoint ()
 Connect to this signal to receive notifications of new endpoints created by this endpoint server.
virtual const std::string & object_type ()
 Conexus library string type identifier.

Protected Member Functions

void queue_endpoint (Endpoint::pointer endpoint)
void emit_endpoints ()
void queue_endpoint (Endpoint::pointer endpoint)
void emit_endpoints ()
void queue_endpoint (Endpoint::pointer endpoint)
void emit_endpoints ()

Protected Attributes

sigc::signal< void, Endpoint::pointerm_signal_new_endpoint
sigc::connection m_dispatcher_connection
std::queue< Endpoint::pointerm_endpoint_queue
Glib::Mutex m_mutex_signal_endpoint
Glib::Mutex m_mutex_endpoint_queue
sigc::signal< void, Endpoint::pointerm_signal_new_endpoint
std::queue< Endpoint::pointerm_endpoint_queue
sigc::signal< void, Endpoint::pointerm_signal_new_endpoint
std::queue< Endpoint::pointerm_endpoint_queue


Member Function Documentation

void Conexus::EndpointServer::start (  )  [virtual]

Starts the EndpointServer in a threaded mode.

Whether a dispatcher will be used is determined by the default dispatcher behavior set by Conexus::init() or Conexus::set_use_dispatcher_default().

Reimplemented from Conexus::Server.

virtual void Conexus::EndpointServer::start (  )  [virtual]

Starts the EndpointServer in a threaded mode.

Whether a dispatcher will be used is determined by the default dispatcher behavior set by Conexus::init() or Conexus::set_use_dispatcher_default().

Reimplemented from Conexus::Server.

virtual void Conexus::EndpointServer::start (  )  [virtual]

Starts the EndpointServer in a threaded mode.

Whether a dispatcher will be used is determined by the default dispatcher behavior set by Conexus::init() or Conexus::set_use_dispatcher_default().

Reimplemented from Conexus::Server.


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