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

#include <BinaryStreamClient.h>

Inheritance diagram for dtn::api::BinaryStreamClient:
Collaboration diagram for dtn::api::BinaryStreamClient:

List of all members.

Classes

class  Sender

Public Member Functions

 BinaryStreamClient (ClientHandler &client, ibrcommon::tcpstream &stream)
virtual ~BinaryStreamClient ()
virtual void eventShutdown (dtn::streams::StreamConnection::ConnectionShutdownCases csc)
virtual void eventTimeout ()
virtual void eventError ()
virtual void eventConnectionDown ()
virtual void eventConnectionUp (const dtn::streams::StreamContactHeader &header)
virtual void eventBundleRefused ()
virtual void eventBundleForwarded ()
virtual void eventBundleAck (size_t ack)
const dtn::data::EIDgetPeer () const
void queue (const dtn::data::Bundle &bundle)
void received (const dtn::streams::StreamContactHeader &h)
void run ()
void finally ()
void __cancellation ()
bool good () const

Friends

class Sender

Detailed Description

Definition at line 19 of file BinaryStreamClient.h.


Constructor & Destructor Documentation


Member Function Documentation

void dtn::api::BinaryStreamClient::eventBundleAck ( size_t  ack) [virtual]

This method is called if a ACK is received.

Implements dtn::streams::StreamConnection::Callback.

Definition at line 114 of file BinaryStreamClient.cpp.

This method is called if a bundle is refused by the peer.

Implements dtn::streams::StreamConnection::Callback.

Definition at line 99 of file BinaryStreamClient.cpp.

References dtn::api::ProtocolHandler::_client, dtn::api::Registration::delivered(), ibrcommon::Queue< T >::getnpop(), and dtn::api::ClientHandler::getRegistration().

Here is the call graph for this function:

This method is called if a bundle is refused by the peer.

Implements dtn::streams::StreamConnection::Callback.

Definition at line 86 of file BinaryStreamClient.cpp.

References ibrcommon::Queue< T >::getnpop().

Here is the call graph for this function:

This method is called if a error occured in the stream.

Implements dtn::streams::StreamConnection::Callback.

Definition at line 48 of file BinaryStreamClient.cpp.

This method is called if a SHUTDOWN message is received.

Implements dtn::streams::StreamConnection::Callback.

Definition at line 40 of file BinaryStreamClient.cpp.

This method is called if the stream is closed by a TIMEOUT.

Implements dtn::streams::StreamConnection::Callback.

Definition at line 44 of file BinaryStreamClient.cpp.

Definition at line 35 of file BinaryStreamClient.cpp.

Definition at line 255 of file BinaryStreamClient.cpp.


Friends And Related Function Documentation

friend class Sender [friend]

Definition at line 63 of file BinaryStreamClient.h.


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