IBR-DTNSuite  0.8
dtn::api::ExtendedApiHandler Class Reference

#include <ExtendedApiHandler.h>

Inheritance diagram for dtn::api::ExtendedApiHandler:
Collaboration diagram for dtn::api::ExtendedApiHandler:

List of all members.

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

Detailed Description

Definition at line 25 of file ExtendedApiHandler.h.


Member Enumeration Documentation

Enumerator:
API_STATUS_NOTIFY_COMMON 
API_STATUS_NOTIFY_NEIGHBOR 
API_STATUS_NOTIFY_BUNDLE 

Definition at line 28 of file ExtendedApiHandler.h.


Constructor & Destructor Documentation


Member Function Documentation

Implements dtn::api::ProtocolHandler.

Definition at line 50 of file ExtendedApiHandler.cpp.

References dtn::api::ProtocolHandler::_stream, and ibrcommon::tcpstream::close().

Here is the call graph for this function:

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

Here is the call graph for this function:


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