IBR-DTNSuite 0.6

dtn::api::ApiServer Class Reference

#include <ApiServer.h>

Inheritance diagram for dtn::api::ApiServer:
Collaboration diagram for dtn::api::ApiServer:

List of all members.

Classes

class  Distributor
class  ProcessBundleTask
class  QueryBundleTask
class  RemoveBundleTask
class  Task
class  TransferBundleTask

Public Member Functions

 ApiServer (const ibrcommon::File &socket)
 ApiServer (const ibrcommon::vinterface &net, int port=4550)
virtual ~ApiServer ()
virtual const std::string getName () const

Protected Member Functions

bool __cancellation ()
void shutdown ()
virtual void connectionUp (ClientHandler *conn)
virtual void connectionDown (ClientHandler *conn)
void componentUp ()
void componentRun ()
void componentDown ()

Detailed Description

Definition at line 25 of file ApiServer.h.


Constructor & Destructor Documentation

dtn::api::ApiServer::ApiServer ( const ibrcommon::File socket)

Definition at line 26 of file ApiServer.cpp.

dtn::api::ApiServer::ApiServer ( const ibrcommon::vinterface net,
int  port = 4550 
)

Definition at line 31 of file ApiServer.cpp.

References ibrcommon::tcpserver::bind().

Here is the call graph for this function:

dtn::api::ApiServer::~ApiServer ( ) [virtual]

Definition at line 36 of file ApiServer.cpp.

References ibrcommon::JoinableThread::join().

Here is the call graph for this function:


Member Function Documentation

bool dtn::api::ApiServer::__cancellation ( ) [protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 41 of file ApiServer.cpp.

References shutdown().

Here is the call graph for this function:

void dtn::api::ApiServer::componentDown ( ) [protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 78 of file ApiServer.cpp.

References shutdown().

Here is the call graph for this function:

void dtn::api::ApiServer::componentRun ( ) [protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 58 of file ApiServer.cpp.

References ibrcommon::tcpserver::accept(), dtn::api::ClientHandler::initialize(), and ibrcommon::Thread::yield().

Here is the call graph for this function:

void dtn::api::ApiServer::componentUp ( ) [protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 47 of file ApiServer.cpp.

References IBRCOMMON_LOGGER, IBRCOMMON_LOGGER_ENDL, ibrcommon::tcpserver::listen(), and ibrcommon::Exception::what().

Here is the call graph for this function:

void dtn::api::ApiServer::connectionDown ( ClientHandler conn) [protected, virtual]
void dtn::api::ApiServer::connectionUp ( ClientHandler conn) [protected, virtual]
const std::string dtn::api::ApiServer::getName ( ) const [virtual]
See also:
Component::getName()

Implements dtn::daemon::Component.

Definition at line 338 of file ApiServer.cpp.

void dtn::api::ApiServer::shutdown ( ) [protected]

Definition at line 84 of file ApiServer.cpp.

References ibrcommon::tcpserver::close(), and ibrcommon::tcpserver::shutdown().

Referenced by __cancellation(), and componentDown().

Here is the call graph for this function:


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