User Manual, Developers Guide and API Documentation

tcp::ThreeWayHandshake Class Reference

This FU holds the TCP's finite state machine and delegates the control messages between it and the dispatcher.

#include <ThreeWayHandshake.hpp>

Inheritance diagram for tcp::ThreeWayHandshake:

Inheritance graph
[legend]
Collaboration diagram for tcp::ThreeWayHandshake:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void activeOpen (const wns::service::tl::FlowID &_flowID)
virtual void closeConnection (const wns::service::tl::FlowID &_flowID)
virtual bool doIsAccepting (const wns::ldk::CompoundPtr &_compound) const
 Implementing the CompoundHandlerInterface.
virtual void doOnData (const wns::ldk::CompoundPtr &_compound)
virtual void doSendData (const wns::ldk::CompoundPtr &_compound)
virtual void onFUNCreated ()
 Find my friends. This is currently the connection comprising state while connection establishing or termination.
virtual void passiveOpen (const wns::service::tl::FlowID &_flowID)
virtual void registerStrategyHandler (HandshakeStrategyHandlerInterface *_strategyHandler)
 Register the TCP service.
void tcpFlagsToUpperCommand (wns::ldk::CompoundPtr &_compound)
 This function the boolean flags of the UpperCommand according to the flags set by the state transitions.
 ThreeWayHandshake (wns::ldk::fun::FUN *_fun, const wns::pyconfig::View &_pyco)
virtual ~ThreeWayHandshake ()
 Component's destructor.

Private Member Functions

bool doIsAccepting (const wns::ldk::CompoundPtr &_compound)
void doWakeup ()

Private Attributes

wns::service::tl::FlowID flowID
 The flow ID of this instance.
FiniteStateMachinefsm
 The implementation of TCP's finite state machine.
wns::logger::Logger logger
 My logger.
wns::pyconfig::View pyco
 Configuration for this component.
HandshakeStrategyHandlerInterfacestrategyHandler
 The service of the TCP component.
TCPHeadertcpHeaderFU
wns::ldk::CommandReaderInterfacetcpHeaderReader


Detailed Description

Definition at line 57 of file ThreeWayHandshake.hpp.


Constructor & Destructor Documentation

ThreeWayHandshake::ThreeWayHandshake ( wns::ldk::fun::FUN _fun,
const wns::pyconfig::View _pyco 
)

Definition at line 51 of file ThreeWayHandshake.cpp.

ThreeWayHandshake::~ThreeWayHandshake (  )  [virtual]

Definition at line 71 of file ThreeWayHandshake.cpp.


Member Function Documentation

void ThreeWayHandshake::activeOpen ( const wns::service::tl::FlowID _flowID  )  [virtual]

Implements tcp::HandshakeStrategyInterface.

Definition at line 270 of file ThreeWayHandshake.cpp.

void ThreeWayHandshake::closeConnection ( const wns::service::tl::FlowID _flowID  )  [virtual]

Implements tcp::HandshakeStrategyInterface.

Definition at line 305 of file ThreeWayHandshake.cpp.

bool ThreeWayHandshake::doIsAccepting ( const wns::ldk::CompoundPtr _compound  )  [private]

Definition at line 253 of file ThreeWayHandshake.cpp.

bool ThreeWayHandshake::doIsAccepting ( const wns::ldk::CompoundPtr _compound  )  const [virtual]

Definition at line 264 of file ThreeWayHandshake.cpp.

void ThreeWayHandshake::doOnData ( const wns::ldk::CompoundPtr _compound  )  [virtual]

Definition at line 86 of file ThreeWayHandshake.cpp.

void ThreeWayHandshake::doSendData ( const wns::ldk::CompoundPtr _compound  )  [virtual]

Definition at line 243 of file ThreeWayHandshake.cpp.

void ThreeWayHandshake::doWakeup (  )  [private]

Definition at line 259 of file ThreeWayHandshake.cpp.

void ThreeWayHandshake::onFUNCreated (  )  [virtual]

Reimplemented from wns::ldk::FunctionalUnit.

Definition at line 77 of file ThreeWayHandshake.cpp.

void ThreeWayHandshake::passiveOpen ( const wns::service::tl::FlowID _flowID  )  [virtual]

Implements tcp::HandshakeStrategyInterface.

Definition at line 291 of file ThreeWayHandshake.cpp.

void ThreeWayHandshake::registerStrategyHandler ( HandshakeStrategyHandlerInterface _strategyHandler  )  [virtual]

Implements tcp::HandshakeStrategyInterface.

Definition at line 299 of file ThreeWayHandshake.cpp.

void ThreeWayHandshake::tcpFlagsToUpperCommand ( wns::ldk::CompoundPtr _compound  ) 

Definition at line 330 of file ThreeWayHandshake.cpp.


Member Data Documentation

Definition at line 152 of file ThreeWayHandshake.hpp.

Definition at line 162 of file ThreeWayHandshake.hpp.

Definition at line 142 of file ThreeWayHandshake.hpp.

Definition at line 157 of file ThreeWayHandshake.hpp.

Definition at line 147 of file ThreeWayHandshake.hpp.

Definition at line 164 of file ThreeWayHandshake.hpp.

Definition at line 166 of file ThreeWayHandshake.hpp.


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

Generated on Sat May 26 03:32:40 2012 for openWNS by  doxygen 1.5.5