IBR-DTNSuite  0.12
dtn::streams::StreamConnection::Callback Class Referenceabstract

#include <StreamConnection.h>

Inheritance diagram for dtn::streams::StreamConnection::Callback:
Inheritance graph
Collaboration diagram for dtn::streams::StreamConnection::Callback:
Collaboration graph

Public Member Functions

virtual void eventShutdown (StreamConnection::ConnectionShutdownCases csc)=0 throw ()
 
virtual void eventTimeout ()=0 throw ()
 
virtual void eventError ()=0 throw ()
 
virtual void eventBundleRefused ()=0 throw ()
 
virtual void eventBundleForwarded ()=0 throw ()
 
virtual void eventBundleAck (const dtn::data::Length &ack)=0 throw ()
 
virtual void eventConnectionUp (const StreamContactHeader &header)=0 throw ()
 
virtual void eventConnectionDown ()=0 throw ()
 
virtual void addTrafficIn (size_t) throw ()
 
virtual void addTrafficOut (size_t) throw ()
 

Detailed Description

Definition at line 96 of file StreamConnection.h.

Member Function Documentation

virtual void dtn::streams::StreamConnection::Callback::addTrafficIn ( size_t  )
throw (
)
inlinevirtual

Reports inbound traffic amount

Reimplemented in dtn::net::TCPConnection.

Definition at line 143 of file StreamConnection.h.

virtual void dtn::streams::StreamConnection::Callback::addTrafficOut ( size_t  )
throw (
)
inlinevirtual

Reports outbound traffic amount

Reimplemented in dtn::net::TCPConnection.

Definition at line 148 of file StreamConnection.h.

virtual void dtn::streams::StreamConnection::Callback::eventBundleAck ( const dtn::data::Length ack)
throw (
)
pure virtual

This method is called if a ACK is received.

Implemented in dtn::api::Client, dtn::net::TCPConnection, and dtn::api::BinaryStreamClient.

virtual void dtn::streams::StreamConnection::Callback::eventBundleForwarded ( )
throw (
)
pure virtual

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

Implemented in dtn::api::Client, dtn::net::TCPConnection, and dtn::api::BinaryStreamClient.

virtual void dtn::streams::StreamConnection::Callback::eventBundleRefused ( )
throw (
)
pure virtual

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

Implemented in dtn::api::Client, dtn::net::TCPConnection, and dtn::api::BinaryStreamClient.

virtual void dtn::streams::StreamConnection::Callback::eventConnectionDown ( )
throw (
)
pure virtual

This method is called if a connection went down.

Implemented in dtn::api::Client, dtn::net::TCPConnection, and dtn::api::BinaryStreamClient.

Referenced by dtn::streams::StreamConnection::shutdown().

virtual void dtn::streams::StreamConnection::Callback::eventConnectionUp ( const StreamContactHeader header)
throw (
)
pure virtual

This method is called if a handshake was successful.

Parameters
header

Implemented in dtn::api::Client, dtn::net::TCPConnection, and dtn::api::BinaryStreamClient.

Referenced by dtn::streams::StreamConnection::handshake().

virtual void dtn::streams::StreamConnection::Callback::eventError ( )
throw (
)
pure virtual

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

Implemented in dtn::api::Client, dtn::net::TCPConnection, and dtn::api::BinaryStreamClient.

Referenced by dtn::streams::StreamConnection::shutdown().

virtual void dtn::streams::StreamConnection::Callback::eventShutdown ( StreamConnection::ConnectionShutdownCases  csc)
throw (
)
pure virtual

This method is called if a SHUTDOWN message is received.

Implemented in dtn::net::TCPConnection, and dtn::api::BinaryStreamClient.

Referenced by dtn::streams::StreamConnection::shutdown().

virtual void dtn::streams::StreamConnection::Callback::eventTimeout ( )
throw (
)
pure virtual

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

Implemented in dtn::api::Client, dtn::net::TCPConnection, and dtn::api::BinaryStreamClient.

Referenced by dtn::streams::StreamConnection::shutdown().


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