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

#include <ExtendedApiHandler.h>

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

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
 

Detailed Description

Definition at line 41 of file ExtendedApiHandler.h.

Member Enumeration Documentation

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.

Constructor & Destructor Documentation

dtn::api::ExtendedApiHandler::ExtendedApiHandler ( ClientHandler client,
ibrcommon::socketstream stream 
)

Definition at line 51 of file ExtendedApiHandler.cpp.

References dtn::api::ProtocolHandler::_client, dtn::api::ClientHandler::getRegistration(), and dtn::api::Registration::subscribe().

Here is the call graph for this function:

dtn::api::ExtendedApiHandler::~ExtendedApiHandler ( )
virtual

Definition at line 58 of file ExtendedApiHandler.cpp.

References dtn::api::ProtocolHandler::_client, dtn::api::Registration::abort(), and dtn::api::ClientHandler::getRegistration().

Here is the call graph for this function:

Member Function Documentation

void dtn::api::ExtendedApiHandler::__cancellation ( ) throw ()
virtual

Implements dtn::api::ProtocolHandler.

Definition at line 69 of file ExtendedApiHandler.cpp.

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

Here is the call graph for this function:

bool dtn::api::ExtendedApiHandler::good ( ) const

Definition at line 65 of file ExtendedApiHandler.cpp.

References dtn::api::ProtocolHandler::_stream.

void dtn::api::ExtendedApiHandler::run ( void  )
virtual

Implements dtn::api::ProtocolHandler.

Definition at line 90 of file ExtendedApiHandler.cpp.

References dtn::api::ProtocolHandler::_client, dtn::api::ProtocolHandler::_stream, dtn::api::Registration::abort(), dtn::data::EID::add(), 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::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::data::PrimaryBlock::relabel(), dtn::storage::BundleStorage::remove(), dtn::data::Block::set(), 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().

Here is the call graph for this function:


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