IBR-DTNSuite
0.8
|
#include <ExtendedApiHandler.h>
Classes | |
class | Sender |
Public Types | |
enum | STATUS_CODES { API_STATUS_NOTIFY_COMMON = 600, API_STATUS_NOTIFY_NEIGHBOR = 601, API_STATUS_NOTIFY_BUNDLE = 602 } |
Public Member Functions | |
ExtendedApiHandler (ClientHandler &client, ibrcommon::tcpstream &stream) | |
virtual | ~ExtendedApiHandler () |
virtual void | run () |
virtual void | finally () |
virtual void | __cancellation () |
bool | good () const |
Definition at line 25 of file ExtendedApiHandler.h.
Definition at line 28 of file ExtendedApiHandler.h.
dtn::api::ExtendedApiHandler::ExtendedApiHandler | ( | ClientHandler & | client, |
ibrcommon::tcpstream & | stream | ||
) |
Definition at line 33 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_client, dtn::api::ClientHandler::getRegistration(), and dtn::api::Registration::subscribe().
dtn::api::ExtendedApiHandler::~ExtendedApiHandler | ( | ) | [virtual] |
Definition at line 40 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_client, dtn::api::Registration::abort(), and dtn::api::ClientHandler::getRegistration().
void dtn::api::ExtendedApiHandler::__cancellation | ( | ) | [virtual] |
Implements dtn::api::ProtocolHandler.
Definition at line 50 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_stream, and ibrcommon::tcpstream::close().
void dtn::api::ExtendedApiHandler::finally | ( | void | ) | [virtual] |
Implements dtn::api::ProtocolHandler.
Definition at line 58 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_client, dtn::api::ProtocolHandler::_stream, dtn::api::Registration::abort(), ibrcommon::tcpstream::close(), dtn::api::ClientHandler::getRegistration(), IBRCOMMON_LOGGER_DEBUG, and IBRCOMMON_LOGGER_ENDL.
bool dtn::api::ExtendedApiHandler::good | ( | ) | const |
Definition at line 46 of file ExtendedApiHandler.cpp.
References dtn::api::ProtocolHandler::_stream.
void dtn::api::ExtendedApiHandler::run | ( | void | ) | [virtual] |
Implements dtn::api::ProtocolHandler.
Definition at line 75 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::PrimaryBlock::APPDATA_IS_ADMRECORD, dtn::data::Bundle::blockCount(), ibrcommon::BLOB::create(), dtn::api::Registration::delivered(), dtn::data::Block::deserialize(), dtn::api::PlainDeserializer::BlockInserter::END, dtn::api::PlainDeserializer::BlockInserter::FRONT, dtn::data::PrimaryBlock::get(), dtn::storage::BundleStorage::get(), dtn::api::PlainDeserializer::BlockInserter::getAlignment(), dtn::api::ClientHandler::getAPIServer(), dtn::data::Bundle::getBlock(), dtn::data::Bundle::getBlocks(), dtn::api::Registration::getDefaultEID(), dtn::api::Registration::getHandle(), dtn::core::BundleCore::getInstance(), dtn::data::Block::getLength(), dtn::core::BundleCore::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, IBRCOMMON_LOGGER_ENDL, ibrcommon::BLOB::Reference::iostream(), dtn::data::Block::LAST_BLOCK, dtn::core::BundleCore::local, dtn::api::PlainDeserializer::BlockInserter::MIDDLE, dtn::core::BundleCore::processBlocks(), dtn::api::ApiServerInterface::processIncomingBundle(), dtn::api::PlainDeserializer::readBlock(), dtn::data::PrimaryBlock::relabel(), dtn::storage::BundleStorage::remove(), dtn::data::Bundle::remove(), dtn::api::PlainSerializer::serialize(), dtn::data::Block::serialize(), dtn::data::Block::set(), dtn::api::Registration::setPersistent(), ibrcommon::BLOB::iostream::size(), dtn::storage::BundleStorage::store(), dtn::api::Registration::subscribe(), dtn::api::ClientHandler::switchRegistration(), dtn::utils::Utils::tokenize(), and dtn::api::Registration::unsubscribe().