IBR-DTNSuite
0.8
|
#include <EventConnection.h>
Public Member Functions | |
EventConnection (ClientHandler &client, ibrcommon::tcpstream &stream) | |
virtual | ~EventConnection () |
void | run () |
void | finally () |
void | setup () |
void | __cancellation () |
void | raiseEvent (const dtn::core::Event *evt) |
Definition at line 18 of file EventConnection.h.
dtn::api::EventConnection::EventConnection | ( | ClientHandler & | client, |
ibrcommon::tcpstream & | stream | ||
) |
Definition at line 24 of file EventConnection.cpp.
dtn::api::EventConnection::~EventConnection | ( | ) | [virtual] |
Definition at line 29 of file EventConnection.cpp.
void dtn::api::EventConnection::__cancellation | ( | ) | [virtual] |
Implements dtn::api::ProtocolHandler.
Definition at line 232 of file EventConnection.cpp.
void dtn::api::EventConnection::finally | ( | void | ) | [virtual] |
Implements dtn::api::ProtocolHandler.
Definition at line 220 of file EventConnection.cpp.
References dtn::net::TransferCompletedEvent::className, dtn::routing::QueueBundleEvent::className, dtn::net::ConnectionEvent::className, dtn::net::TransferAbortedEvent::className, dtn::core::CustodyEvent::className, dtn::core::NodeEvent::className, dtn::core::GlobalEvent::className, and dtn::core::EventReceiver::unbindEvent().
void dtn::api::EventConnection::raiseEvent | ( | const dtn::core::Event * | evt | ) | [virtual] |
Implements dtn::core::EventReceiver.
Definition at line 33 of file EventConnection.cpp.
References dtn::api::ProtocolHandler::_stream, dtn::data::MetaBundle::appdatalength, dtn::routing::QueueBundleEvent::bundle, dtn::net::ConnectionEvent::CONNECTION_DOWN, dtn::net::ConnectionEvent::CONNECTION_SETUP, dtn::net::ConnectionEvent::CONNECTION_TIMEOUT, dtn::net::ConnectionEvent::CONNECTION_UP, dtn::data::MetaBundle::destination, dtn::data::BundleID::fragment, dtn::core::NodeEvent::getAction(), dtn::core::GlobalEvent::getAction(), dtn::core::Node::getEID(), dtn::routing::QueueBundleEvent::getName(), dtn::net::ConnectionEvent::getName(), dtn::core::GlobalEvent::getName(), dtn::core::NodeEvent::getName(), dtn::core::NodeEvent::getNode(), dtn::data::EID::getString(), dtn::core::GlobalEvent::GLOBAL_BUSY, dtn::core::GlobalEvent::GLOBAL_IDLE, dtn::core::GlobalEvent::GLOBAL_POWERSAVE, dtn::core::GlobalEvent::GLOBAL_RELOAD, dtn::core::GlobalEvent::GLOBAL_SHUTDOWN, dtn::core::GlobalEvent::GLOBAL_SUSPEND, dtn::data::MetaBundle::lifetime, dtn::core::NODE_AVAILABLE, dtn::core::NODE_INFO_UPDATED, dtn::core::NODE_UNAVAILABLE, dtn::data::BundleID::offset, dtn::net::ConnectionEvent::peer, dtn::data::MetaBundle::procflags, dtn::data::BundleID::sequencenumber, dtn::data::BundleID::source, dtn::net::ConnectionEvent::state, and dtn::data::BundleID::timestamp.
void dtn::api::EventConnection::run | ( | void | ) | [virtual] |
Implements dtn::api::ProtocolHandler.
Definition at line 181 of file EventConnection.cpp.
References dtn::api::ProtocolHandler::_stream, dtn::api::ClientHandler::API_STATUS_OK, and dtn::utils::Utils::tokenize().
void dtn::api::EventConnection::setup | ( | void | ) | [virtual] |
Reimplemented from dtn::api::ProtocolHandler.
Definition at line 208 of file EventConnection.cpp.
References dtn::core::EventReceiver::bindEvent(), dtn::net::TransferCompletedEvent::className, dtn::routing::QueueBundleEvent::className, dtn::net::ConnectionEvent::className, dtn::net::TransferAbortedEvent::className, dtn::core::CustodyEvent::className, dtn::core::NodeEvent::className, and dtn::core::GlobalEvent::className.