Public Member Functions | Protected Member Functions | Protected Attributes

dtn::net::GenericServer< T > Class Template Reference

#include <GenericServer.h>

Inherits dtn::daemon::IndependentComponent.

Collaboration diagram for dtn::net::GenericServer< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GenericServer ()
virtual ~GenericServer ()
ibrcommon::Mutexmutex ()
void add (T *obj)
void remove (T *obj)

Protected Member Functions

virtual T * accept ()=0
virtual void listen ()=0
virtual void shutdown ()=0
bool __cancellation ()
virtual void connectionUp (T *conn)=0
virtual void connectionDown (T *conn)=0
void componentUp ()
void componentRun ()
void componentDown ()

Protected Attributes

ibrcommon::Mutex _lock
std::list< T * > _clients

Detailed Description

template<class T>
class dtn::net::GenericServer< T >

Definition at line 35 of file GenericServer.h.


Constructor & Destructor Documentation

template<class T>
dtn::net::GenericServer< T >::GenericServer (  )  [inline]

Definition at line 38 of file GenericServer.h.

template<class T>
virtual dtn::net::GenericServer< T >::~GenericServer (  )  [inline, virtual]

Definition at line 41 of file GenericServer.h.


Member Function Documentation

template<class T>
bool dtn::net::GenericServer< T >::__cancellation (  )  [inline, protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 66 of file GenericServer.h.

template<class T>
virtual T* dtn::net::GenericServer< T >::accept (  )  [protected, pure virtual]
template<class T>
void dtn::net::GenericServer< T >::add ( T *  obj  )  [inline]
template<class T>
void dtn::net::GenericServer< T >::componentDown (  )  [inline, protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 104 of file GenericServer.h.

template<class T>
void dtn::net::GenericServer< T >::componentRun (  )  [inline, protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 80 of file GenericServer.h.

template<class T>
void dtn::net::GenericServer< T >::componentUp (  )  [inline, protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 75 of file GenericServer.h.

template<class T>
virtual void dtn::net::GenericServer< T >::connectionDown ( T *  conn  )  [protected, pure virtual]
template<class T>
virtual void dtn::net::GenericServer< T >::connectionUp ( T *  conn  )  [protected, pure virtual]
template<class T>
virtual void dtn::net::GenericServer< T >::listen (  )  [protected, pure virtual]
template<class T>
ibrcommon::Mutex& dtn::net::GenericServer< T >::mutex (  )  [inline]
template<class T>
void dtn::net::GenericServer< T >::remove ( T *  obj  )  [inline]
template<class T>
virtual void dtn::net::GenericServer< T >::shutdown (  )  [protected, pure virtual]

Member Data Documentation

template<class T>
std::list< T* > dtn::net::GenericServer< T >::_clients [protected]
template<class T>
ibrcommon::Mutex dtn::net::GenericServer< T >::_lock [protected]

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