![]() |
User Manual, Developers Guide and API Documentation |
![]() |
#include <mac/CSMACA.hpp>


Public Member Functions | |
| virtual wns::ldk::CompoundPtr | getData () |
| Return a user data Compound for transmission. | |
| virtual void | onCarrierBusy () |
| called from PHY implementation if carrier is busy after it has been idle | |
| virtual void | onCarrierIdle () |
| called from PHY implementation if carrier is idle after it has been busy | |
| virtual void | onCollision () |
| called from PHY implementation if collision happened | |
| virtual void | onDataSent (wns::osi::PDUPtr pdu) |
| called from PHY implementation if data has been transmitted | |
| virtual void | onTimeout () |
| Your callback. Implement this. | |
| StopAndWait (wns::ldk::fun::FUN *fuNet, const wns::pyconfig::View &config) | |
Private Attributes | |
| double | longResendTimeout |
| double | shortResendTimeout |
| bool | waitingForAckTransmission |
Definition at line 109 of file CSMACA.hpp.
| StopAndWait::StopAndWait | ( | wns::ldk::fun::FUN * | fuNet, | |
| const wns::pyconfig::View & | config | |||
| ) |
| wns::ldk::CompoundPtr StopAndWait::getData | ( | ) | [virtual] |
getData will only get called after a call to hasData. Every implementation of this interface /must/ return the same Compound for subsequent hasData/getData calls.
Reimplemented from wns::ldk::arq::StopAndWait.
Definition at line 192 of file CSMACA.cpp.
| void StopAndWait::onCarrierBusy | ( | ) | [virtual] |
| void StopAndWait::onCarrierIdle | ( | ) | [virtual] |
| void StopAndWait::onCollision | ( | ) | [virtual] |
| void StopAndWait::onDataSent | ( | wns::osi::PDUPtr | pdu | ) | [virtual] |
if the transmission is (manually) canceled for whatsoever reason, this method is not called.
| pdu | PDU that has just been sent |
Implements wns::service::phy::copper::DataTransmissionFeedbackInterface.
Definition at line 200 of file CSMACA.cpp.
| void StopAndWait::onTimeout | ( | ) | [virtual] |
The deriver is forced to implement this method. It gets called, whenever the timer fires.
Reimplemented from wns::ldk::arq::StopAndWait.
Definition at line 239 of file CSMACA.cpp.
Definition at line 131 of file CSMACA.hpp.
Definition at line 130 of file CSMACA.hpp.
Definition at line 132 of file CSMACA.hpp.
1.5.5