#include <GenericServer.h>
Inherits dtn::daemon::IndependentComponent.

Public Member Functions | |
| GenericServer () | |
| virtual | ~GenericServer () |
| ibrcommon::Mutex & | mutex () |
| 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 |
Definition at line 35 of file GenericServer.h.
| dtn::net::GenericServer< T >::GenericServer | ( | ) | [inline] |
Definition at line 38 of file GenericServer.h.
| virtual dtn::net::GenericServer< T >::~GenericServer | ( | ) | [inline, virtual] |
Definition at line 41 of file GenericServer.h.
| bool dtn::net::GenericServer< T >::__cancellation | ( | ) | [inline, protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 66 of file GenericServer.h.
| virtual T* dtn::net::GenericServer< T >::accept | ( | ) | [protected, pure virtual] |
| void dtn::net::GenericServer< T >::add | ( | T * | obj | ) | [inline] |
Definition at line 49 of file GenericServer.h.
Referenced by dtn::net::GenericServer< TCPConvergenceLayer::TCPConnection >::componentRun().
| void dtn::net::GenericServer< T >::componentDown | ( | ) | [inline, protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 104 of file GenericServer.h.
| void dtn::net::GenericServer< T >::componentRun | ( | ) | [inline, protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 80 of file GenericServer.h.
| void dtn::net::GenericServer< T >::componentUp | ( | ) | [inline, protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 75 of file GenericServer.h.
| virtual void dtn::net::GenericServer< T >::connectionDown | ( | T * | conn | ) | [protected, pure virtual] |
| virtual void dtn::net::GenericServer< T >::connectionUp | ( | T * | conn | ) | [protected, pure virtual] |
| virtual void dtn::net::GenericServer< T >::listen | ( | ) | [protected, pure virtual] |
| ibrcommon::Mutex& dtn::net::GenericServer< T >::mutex | ( | ) | [inline] |
Definition at line 44 of file GenericServer.h.
Referenced by dtn::net::TCPConvergenceLayer::TCPConnection::finally().
| void dtn::net::GenericServer< T >::remove | ( | T * | obj | ) | [inline] |
Definition at line 55 of file GenericServer.h.
Referenced by dtn::net::TCPConvergenceLayer::TCPConnection::finally().
| virtual void dtn::net::GenericServer< T >::shutdown | ( | ) | [protected, pure virtual] |
std::list< T* > dtn::net::GenericServer< T >::_clients [protected] |
ibrcommon::Mutex dtn::net::GenericServer< T >::_lock [protected] |
1.7.1