IBR-DTNSuite  0.8
dtn::net::TCPConvergenceLayer Class Reference

#include <TCPConvergenceLayer.h>

Inheritance diagram for dtn::net::TCPConvergenceLayer:
Collaboration diagram for dtn::net::TCPConvergenceLayer:

List of all members.

Public Member Functions

 TCPConvergenceLayer ()
virtual ~TCPConvergenceLayer ()
void bind (const ibrcommon::vinterface &net, int port)
void queue (const dtn::core::Node &n, const ConvergenceLayer::Job &job)
void open (const dtn::core::Node &n)
virtual const std::string getName () const
dtn::core::Node::Protocol getDiscoveryProtocol () const
void update (const ibrcommon::vinterface &iface, std::string &name, std::string &data) throw (dtn::net::DiscoveryServiceProvider::NoServiceHereException)

Protected Member Functions

void __cancellation ()
void componentUp ()
void componentRun ()
void componentDown ()

Friends

class TCPConnection

Detailed Description

This class implement a ConvergenceLayer for TCP/IP. http://tools.ietf.org/html/draft-irtf-dtnrg-tcp-clayer-02

Definition at line 223 of file TCPConvergenceLayer.h.


Constructor & Destructor Documentation

Constructor

Parameters:
[in]bind_addrThe address to bind.
[in]portThe port to use.

Definition at line 35 of file TCPConvergenceLayer.cpp.

Destructor

Definition at line 39 of file TCPConvergenceLayer.cpp.


Member Function Documentation

void dtn::net::TCPConvergenceLayer::__cancellation ( ) [protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 262 of file TCPConvergenceLayer.cpp.

void dtn::net::TCPConvergenceLayer::bind ( const ibrcommon::vinterface net,
int  port 
)

Bind on a interface

Parameters:
net
port

Definition at line 44 of file TCPConvergenceLayer.cpp.

Referenced by createConvergenceLayers().

void dtn::net::TCPConvergenceLayer::componentDown ( ) [protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 287 of file TCPConvergenceLayer.cpp.

void dtn::net::TCPConvergenceLayer::componentUp ( ) [protected, virtual]

Implements dtn::daemon::IndependentComponent.

Definition at line 281 of file TCPConvergenceLayer.cpp.

Returns the discovery protocol type

Returns:

Implements dtn::net::ConvergenceLayer.

Definition at line 51 of file TCPConvergenceLayer.cpp.

References dtn::core::Node::CONN_TCPIP.

const std::string dtn::net::TCPConvergenceLayer::getName ( ) const [virtual]
See also:
Component::getName()

Implements dtn::daemon::Component.

Definition at line 91 of file TCPConvergenceLayer.cpp.

Open a connection to the given node.

Parameters:
n
Returns:

Reimplemented from dtn::net::ConvergenceLayer.

Definition at line 96 of file TCPConvergenceLayer.cpp.

References dtn::net::TCPConnection::initialize(), ibrcommon::TLSStream::isInitialized(), dtn::core::BundleCore::local, and dtn::net::TCPConnection::match().

Here is the call graph for this function:

void dtn::net::TCPConvergenceLayer::update ( const ibrcommon::vinterface iface,
std::string &  name,
std::string &  data 
) throw (dtn::net::DiscoveryServiceProvider::NoServiceHereException) [virtual]

this method updates the given values

Implements dtn::net::DiscoveryServiceProvider.

Definition at line 56 of file TCPConvergenceLayer.cpp.

References ibrcommon::vinterface::getAddresses(), and ibrcommon::vaddress::VADDRESS_INET.

Here is the call graph for this function:


Friends And Related Function Documentation

friend class TCPConnection [friend]

Definition at line 225 of file TCPConvergenceLayer.h.


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