User Manual, Developers Guide and API Documentation

wns::ldk::tools::Stub Class Reference

Forward and record traffic. More...

#include <ldk/tools/Stub.hpp>

Inheritance diagram for wns::ldk::tools::Stub:

Inheritance graph
[legend]
Collaboration diagram for wns::ldk::tools::Stub:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void calculateSizes (const CommandPool *commandPool, Bit &commandPoolSize, Bit &dataSize) const
 Default calculateSizes implementation.
 Stub (fun::FUN *fuNet, const pyconfig::View &config)

Private Member Functions

virtual void doOnData (const CompoundPtr &sdu)
virtual void doSendData (const CompoundPtr &sdu)

Private Attributes

int sequenceNumber


Detailed Description

Use the Stub for testing, when you want to inspect the PDU flow in detail. Beside the recording of compounds, you may as well step through the execution like in a debugger using the step() method.

Definition at line 203 of file Stub.hpp.


Constructor & Destructor Documentation

Stub::Stub ( fun::FUN fuNet,
const pyconfig::View config 
)

Set stepping to true, if you whish to have a Stub with debugger like stepping of execution.

Definition at line 227 of file Stub.cpp.


Member Function Documentation

virtual void wns::ldk::tools::Stub::calculateSizes ( const CommandPool commandPool,
Bit commandPoolSize,
Bit dataSize 
) const [inline, virtual]

The default implementation delegates calculation to upper functional units, modifying the result to include the size of the provided Command.

Reimplemented from wns::ldk::CommandTypeSpecifier< T >.

Definition at line 217 of file Stub.hpp.

void Stub::doOnData ( const CompoundPtr sdu  )  [private, virtual]

Reimplemented from wns::ldk::tools::StubBase.

Definition at line 254 of file Stub.cpp.

void Stub::doSendData ( const CompoundPtr sdu  )  [private, virtual]

Reimplemented from wns::ldk::tools::StubBase.

Definition at line 237 of file Stub.cpp.


Member Data Documentation

Definition at line 229 of file Stub.hpp.


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

Generated on Sun May 27 03:33:00 2012 for openWNS by  doxygen 1.5.5