#include <ApiServer.h>
Inherits dtn::daemon::IndependentComponent, and dtn::daemon::ApiServerInterface.

Classes | |
| class | Distributor |
| class | ProcessBundleTask |
| class | QueryBundleTask |
| class | RemoveBundleTask |
| class | Task |
| class | TransferBundleTask |
Public Member Functions | |
| ApiServer (const ibrcommon::File &socket) | |
| ApiServer (ibrcommon::NetInterface 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::daemon::ApiServer::ApiServer | ( | const ibrcommon::File & | socket | ) |
Definition at line 26 of file ApiServer.cpp.
| dtn::daemon::ApiServer::ApiServer | ( | ibrcommon::NetInterface | net, | |
| int | port = 4550 | |||
| ) |
Definition at line 31 of file ApiServer.cpp.
| dtn::daemon::ApiServer::~ApiServer | ( | ) | [virtual] |
Definition at line 36 of file ApiServer.cpp.
References ibrcommon::JoinableThread::join().

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

| void dtn::daemon::ApiServer::componentDown | ( | ) | [protected] |
Definition at line 76 of file ApiServer.cpp.
References shutdown().

| void dtn::daemon::ApiServer::componentRun | ( | ) | [protected] |
Definition at line 56 of file ApiServer.cpp.
References ibrcommon::tcpserver::accept(), dtn::daemon::ClientHandler::initialize(), and ibrcommon::Thread::yield().

| void dtn::daemon::ApiServer::componentUp | ( | ) | [protected] |
Definition at line 47 of file ApiServer.cpp.
References IBRCOMMON_LOGGER, and ibrcommon::Exception::what().

| void dtn::daemon::ApiServer::connectionDown | ( | ClientHandler * | conn | ) | [protected, virtual] |
Implements dtn::daemon::ApiServerInterface.
Definition at line 96 of file ApiServer.cpp.
References IBRCOMMON_LOGGER_DEBUG, and dtn::daemon::ClientHandler::id.
| void dtn::daemon::ApiServer::connectionUp | ( | ClientHandler * | conn | ) | [protected, virtual] |
Implements dtn::daemon::ApiServerInterface.
Definition at line 89 of file ApiServer.cpp.
References IBRCOMMON_LOGGER_DEBUG, and dtn::daemon::ClientHandler::id.
| const std::string dtn::daemon::ApiServer::getName | ( | ) | const [virtual] |
Definition at line 274 of file ApiServer.cpp.
| void dtn::daemon::ApiServer::shutdown | ( | ) | [protected] |
Definition at line 82 of file ApiServer.cpp.
References ibrcommon::tcpserver::close(), and ibrcommon::tcpserver::shutdown().
Referenced by __cancellation(), and componentDown().

1.7.1