conexus logo

Conexus::EndpointServer Class Reference
[Conexus I/O Endpoints]

The EndpointServer generates Endpoints as a result of operation. More...

#include <endpointserver.h>

Inheritance diagram for Conexus::EndpointServer:

Inheritance graph
[legend]

List of all members.

Public Types

typedef ConexusPointer
< EndpointServer
pointer

Public Member Functions

virtual ~EndpointServer ()
sigc::signal< void,
Endpoint::pointer
signal_new_endpoint ()
 Connect to this signal to receive notifications of new endpoints created by this endpoint server.

Protected Member Functions

 EndpointServer ()
virtual void queue_endpoint (Endpoint::pointer endpoint)
void emit ()

Protected Attributes

sigc::signal< void,
Endpoint::pointer
m_signal_new_endpoint
std::queue< Endpoint::pointerm_endpoint_queue
Glib::Mutex m_mutex_signal_endpoint
Glib::Mutex m_mutex_endpoint_queue
Glib::Dispatcher * m_dispatcher
sigc::connection m_dispatcher_connection


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>

Member Typedef Documentation


Constructor & Destructor Documentation

Conexus::EndpointServer::EndpointServer (  )  [protected]

Conexus::EndpointServer::~EndpointServer (  )  [virtual]


Member Function Documentation

void Conexus::EndpointServer::emit (  )  [protected, virtual]

void Conexus::EndpointServer::queue_endpoint ( Endpoint::pointer  endpoint  )  [protected, virtual]

sigc::signal< void, Endpoint::pointer > Conexus::EndpointServer::signal_new_endpoint (  ) 

Connect to this signal to receive notifications of new endpoints created by this endpoint server.

References m_signal_new_endpoint.


Member Data Documentation

Glib::Dispatcher* Conexus::EndpointServer::m_dispatcher [protected]

Reimplemented from Conexus::Server.

Referenced by queue_endpoint().

Referenced by emit(), and queue_endpoint().

Referenced by emit(), and queue_endpoint().

Referenced by emit(), and queue_endpoint().

Referenced by emit(), and signal_new_endpoint().


The documentation for this class was generated from the following files:

Generated on Wed Jul 8 15:51:18 2009 for conexus by doxygen 1.5.8