User Manual, Developers Guide and API Documentation

ip::ARPResolver Class Reference

Functional unit that resolves IP to MAC addresses. More...

#include <ARPResolver.hpp>

Inheritance diagram for ip::ARPResolver:

Inheritance graph
[legend]
Collaboration diagram for ip::ARPResolver:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 ARPResolver (wns::ldk::fun::FUN *fuNet, const wns::pyconfig::View &config)
virtual bool doIsAccepting (const wns::ldk::CompoundPtr &compound) const
virtual void doOnData (const wns::ldk::CompoundPtr &compound)
virtual void doSendData (const wns::ldk::CompoundPtr &compound)
virtual void doWakeup ()
virtual void onAddressResolved (wns::service::dll::UnicastAddress dest)
virtual void onFUNCreated ()
 Resolve inter-FU dependencies.

Private Attributes

wns::ldk::CompoundPtr buffer
wns::ldk::CommandReaderInterfaceipHeaderReader
wns::logger::Logger log
wns::service::dll::UnicastAddress macID


Detailed Description

To resolve the MAC addresses this Functional Unit collaborates with the VirtualARP

Configuration Class:
ip.Component.ARPResolver

Definition at line 54 of file ARPResolver.hpp.


Constructor & Destructor Documentation

ARPResolver::ARPResolver ( wns::ldk::fun::FUN fuNet,
const wns::pyconfig::View config 
)

Definition at line 39 of file ARPResolver.cpp.


Member Function Documentation

bool ARPResolver::doIsAccepting ( const wns::ldk::CompoundPtr compound  )  const [virtual]

Definition at line 109 of file ARPResolver.cpp.

void ARPResolver::doOnData ( const wns::ldk::CompoundPtr compound  )  [virtual]

Definition at line 96 of file ARPResolver.cpp.

void ARPResolver::doSendData ( const wns::ldk::CompoundPtr compound  )  [virtual]

Definition at line 59 of file ARPResolver.cpp.

void ARPResolver::doWakeup (  )  [virtual]

Definition at line 158 of file ARPResolver.cpp.

void ARPResolver::onAddressResolved ( wns::service::dll::UnicastAddress  dest  )  [virtual]

Implements ip::ResolveCallback.

Definition at line 124 of file ARPResolver.cpp.

void ARPResolver::onFUNCreated (  )  [virtual]

Often FunctionalUnits require the collaboration with other FunctionalUnits to accomplish their task. For the collaboration between FunctionalUnits we coined the term "friendship".

The onFUNCreated method is a hook being called after the complete FUN has been set up. FunctionalUnits requiring the collaboration with other FunctionalUnits should resolve these dependencies by implementing this hook accordingly.

Finding friends is usually done calling wns::ldk::fun::FUN::findFriend.

When building reconfigurable FUNs, this method may get called multiple times (e.g., after each FUN reconfiguration). Keep that in mind when allocating resources in your onFUNCreated implementation.

Reimplemented from wns::ldk::FunctionalUnit.

Definition at line 52 of file ARPResolver.cpp.


Member Data Documentation

Definition at line 91 of file ARPResolver.hpp.

Definition at line 87 of file ARPResolver.hpp.

Definition at line 85 of file ARPResolver.hpp.

Definition at line 89 of file ARPResolver.hpp.


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

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