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.

Public Member Functions

 ApiServer (const ibrcommon::File &socket)
 ApiServer (const ibrcommon::vinterface &net, int port=4550)
virtual ~ApiServer ()
virtual const std::string getName () const
void freeRegistration (Registration &reg)
void raiseEvent (const dtn::core::Event *evt)
void processIncomingBundle (const dtn::data::EID &source, dtn::data::Bundle &bundle)

Protected Member Functions

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

Detailed Description

Definition at line 26 of file ApiServer.h.


Constructor & Destructor Documentation

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

Definition at line 32 of file ApiServer.cpp.

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

Definition at line 37 of file ApiServer.cpp.

References ibrcommon::tcpserver::bind().

Here is the call graph for this function:

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

Definition at line 43 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 48 of file ApiServer.cpp.

References ibrcommon::tcpserver::shutdown().

Here is the call graph for this function:

void dtn::api::ApiServer::componentDown ( ) [protected, virtual]
void dtn::api::ApiServer::componentRun ( ) [protected, virtual]
void dtn::api::ApiServer::componentUp ( ) [protected, virtual]
void dtn::api::ApiServer::connectionDown ( ClientHandler conn) [protected, virtual]

Implements dtn::api::ApiServerInterface.

Definition at line 196 of file ApiServer.cpp.

References IBRCOMMON_LOGGER_DEBUG, and IBRCOMMON_LOGGER_ENDL.

void dtn::api::ApiServer::connectionUp ( ClientHandler conn) [protected, virtual]

Implements dtn::api::ApiServerInterface.

Definition at line 190 of file ApiServer.cpp.

References IBRCOMMON_LOGGER_DEBUG, and IBRCOMMON_LOGGER_ENDL.

void dtn::api::ApiServer::freeRegistration ( Registration reg) [virtual]

Implements dtn::api::ApiServerInterface.

Definition at line 214 of file ApiServer.cpp.

References dtn::api::Registration::getHandle(), IBRCOMMON_LOGGER_DEBUG, and IBRCOMMON_LOGGER_ENDL.

Here is the call graph for this function:

const std::string dtn::api::ApiServer::getName ( ) const [virtual]
See also:
Component::getName()

Implements dtn::daemon::Component.

Definition at line 185 of file ApiServer.cpp.


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