IBR-DTNSuite
0.12
|
#include <ExtendedApiHandler.h>
Public Types | |
enum | STATUS_CODES { API_STATUS_NOTIFY_COMMON = 600, API_STATUS_NOTIFY_NEIGHBOR = 601, API_STATUS_NOTIFY_BUNDLE = 602, API_STATUS_NOTIFY_REPORT = 603, API_STATUS_NOTIFY_CUSTODY = 604 } |
Public Member Functions | |
ExtendedApiHandler (ClientHandler &client, ibrcommon::socketstream &stream) | |
virtual | ~ExtendedApiHandler () |
virtual void | run () |
virtual void | finally () |
virtual void | __cancellation () throw () |
bool | good () const |
Public Member Functions inherited from dtn::api::ProtocolHandler | |
virtual | ~ProtocolHandler ()=0 |
virtual void | setup () |
Additional Inherited Members | |
Protected Member Functions inherited from dtn::api::ProtocolHandler | |
ProtocolHandler (ClientHandler &client, ibrcommon::socketstream &stream) | |
Protected Attributes inherited from dtn::api::ProtocolHandler | |
ClientHandler & | _client |
ibrcommon::socketstream & | _stream |
Definition at line 41 of file ExtendedApiHandler.h.
Enumerator | |
---|---|
API_STATUS_NOTIFY_COMMON | |
API_STATUS_NOTIFY_NEIGHBOR | |
API_STATUS_NOTIFY_BUNDLE | |
API_STATUS_NOTIFY_REPORT | |
API_STATUS_NOTIFY_CUSTODY |
Definition at line 44 of file ExtendedApiHandler.h.
dtn::api::ExtendedApiHandler::ExtendedApiHandler | ( | ClientHandler & | client, |
ibrcommon::socketstream & | stream | ||
) |
Definition at line 47 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_client, dtn::api::ClientHandler::getRegistration(), and dtn::api::Registration::subscribe().
|
virtual |
Definition at line 54 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_client, dtn::api::Registration::abort(), and dtn::api::ClientHandler::getRegistration().
|
virtual |
Implements dtn::api::ProtocolHandler.
Definition at line 65 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_stream, and ibrcommon::socketstream::close().
|
virtual |
Implements dtn::api::ProtocolHandler.
Definition at line 71 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_client, dtn::api::ProtocolHandler::_stream, dtn::api::Registration::abort(), ibrcommon::socketstream::close(), dtn::api::ClientHandler::getRegistration(), IBRCOMMON_LOGGER_DEBUG_TAG, and IBRCOMMON_LOGGER_ENDL.
bool dtn::api::ExtendedApiHandler::good | ( | ) | const |
Definition at line 61 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_stream.
|
virtual |
Implements dtn::api::ProtocolHandler.
Definition at line 86 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_client, dtn::api::ProtocolHandler::_stream, dtn::api::Registration::abort(), dtn::api::ClientHandler::API_STATUS_BAD_REQUEST, dtn::api::ClientHandler::API_STATUS_CONTINUE, dtn::api::ClientHandler::API_STATUS_INTERNAL_ERROR, dtn::api::ClientHandler::API_STATUS_NOT_ACCEPTABLE, dtn::api::ClientHandler::API_STATUS_NOT_FOUND, dtn::api::ClientHandler::API_STATUS_NOT_IMPLEMENTED, dtn::api::ClientHandler::API_STATUS_OK, dtn::api::ClientHandler::API_STATUS_SERVICE_UNAVAILABLE, dtn::data::Bundle::begin(), dtn::data::PayloadBlock::BLOCK_TYPE, ibrcommon::BLOB::iostream::clear(), dtn::data::MetaBundle::create(), dtn::api::Registration::delivered(), dtn::data::BundleBuilder::END, dtn::data::Bundle::end(), dtn::data::Bundle::erase(), dtn::data::Bundle::find(), dtn::data::BundleBuilder::FRONT, dtn::storage::BundleStorage::get(), dtn::data::BundleBuilder::getAlignment(), dtn::api::ClientHandler::getAPIServer(), dtn::data::PayloadBlock::getBLOB(), dtn::core::BundleCore::getConnectionManager(), dtn::api::Registration::getDefaultEID(), dtn::api::Registration::getHandle(), dtn::core::BundleCore::getInstance(), dtn::data::Block::getLength(), dtn::net::ConnectionManager::getNeighbors(), ibrcommon::Queue< T >::getnpop(), dtn::api::ClientHandler::getRegistration(), dtn::api::ApiServerInterface::getRegistration(), dtn::core::BundleCore::getStorage(), dtn::data::EID::getString(), dtn::api::Registration::getSubscriptions(), IBRCOMMON_LOGGER_DEBUG_TAG, IBRCOMMON_LOGGER_ENDL, dtn::api::PlainSerializer::INVALID, ibrcommon::BLOB::Reference::iostream(), dtn::data::Block::LAST_BLOCK, dtn::core::BundleCore::local, dtn::data::BundleBuilder::MIDDLE, dtn::api::PlainSerializer::parseEncoding(), dtn::core::BundleCore::processBlocks(), dtn::api::Registration::processIncomingBundle(), dtn::api::PlainDeserializer::readBlock(), dtn::api::PlainDeserializer::readData(), dtn::storage::BundleStorage::remove(), dtn::data::Block::set(), dtn::data::EID::setApplication(), dtn::api::Registration::setPersistent(), ibrcommon::BLOB::iostream::size(), dtn::data::Bundle::size(), dtn::api::PlainSerializer::SKIP_PAYLOAD, dtn::storage::BundleStorage::store(), dtn::api::Registration::subscribe(), dtn::api::ClientHandler::switchRegistration(), dtn::utils::Utils::tokenize(), dtn::api::Registration::unsubscribe(), and dtn::api::PlainSerializer::writeData().