|
IBR-DTNSuite 0.6
|
#include <ApiServer.h>


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 () |
Definition at line 25 of file ApiServer.h.
| 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().

| dtn::api::ApiServer::~ApiServer | ( | ) | [virtual] |
Definition at line 36 of file ApiServer.cpp.
References ibrcommon::JoinableThread::join().

| bool dtn::api::ApiServer::__cancellation | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 41 of file ApiServer.cpp.
References shutdown().

| void dtn::api::ApiServer::componentDown | ( | ) | [protected, virtual] |
Implements dtn::daemon::IndependentComponent.
Definition at line 78 of file ApiServer.cpp.
References shutdown().

| 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().

| 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().

| void dtn::api::ApiServer::connectionDown | ( | ClientHandler * | conn | ) | [protected, virtual] |
Implements dtn::api::ApiServerInterface.
Definition at line 98 of file ApiServer.cpp.
References IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, and dtn::api::ClientHandler::id.
| void dtn::api::ApiServer::connectionUp | ( | ClientHandler * | conn | ) | [protected, virtual] |
Implements dtn::api::ApiServerInterface.
Definition at line 91 of file ApiServer.cpp.
References IBRCOMMON_LOGGER_DEBUG, IBRCOMMON_LOGGER_ENDL, and dtn::api::ClientHandler::id.
| const std::string dtn::api::ApiServer::getName | ( | ) | const [virtual] |
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().
