equal
deleted
inserted
replaced
97 }; |
97 }; |
98 /// Callback type for MLME-SignalPeerLinkStatus event |
98 /// Callback type for MLME-SignalPeerLinkStatus event |
99 typedef Callback<void, uint32_t, Mac48Address, Mac48Address, PeerLink::PeerState, PeerLink::PeerState> SignalStatusCallback; |
99 typedef Callback<void, uint32_t, Mac48Address, Mac48Address, PeerLink::PeerState, PeerLink::PeerState> SignalStatusCallback; |
100 /// Set callback |
100 /// Set callback |
101 void MLMESetSignalStatusCallback (SignalStatusCallback); |
101 void MLMESetSignalStatusCallback (SignalStatusCallback); |
|
102 /// Reports about transmission success/failure |
|
103 void TransmissionSuccess (); |
|
104 void TransmissionFailure (); |
102 //\} |
105 //\} |
103 ///\brief Statistics |
106 ///\brief Statistics |
104 void Report (std::ostream & os) const; |
107 void Report (std::ostream & os) const; |
105 private: |
108 private: |
106 /** |
109 /** |
218 |
221 |
219 /// When last beacon was received |
222 /// When last beacon was received |
220 Time m_lastBeacon; |
223 Time m_lastBeacon; |
221 /// Current beacon interval on corresponding interface |
224 /// Current beacon interval on corresponding interface |
222 Time m_beaconInterval; |
225 Time m_beaconInterval; |
|
226 /// How many successive packets were failed to transmit |
|
227 uint16_t m_packetFail; |
223 |
228 |
224 /// Current state |
229 /// Current state |
225 PeerState m_state; |
230 PeerState m_state; |
226 /// Mesh interface configuration |
231 /// Mesh interface configuration |
227 IeConfiguration m_configuration; |
232 IeConfiguration m_configuration; |
242 EventId m_retryTimer; |
247 EventId m_retryTimer; |
243 EventId m_holdingTimer; |
248 EventId m_holdingTimer; |
244 EventId m_confirmTimer; |
249 EventId m_confirmTimer; |
245 uint16_t m_retryCounter; |
250 uint16_t m_retryCounter; |
246 EventId m_beaconLossTimer; |
251 EventId m_beaconLossTimer; |
247 uint16_t m_maxBeaconLoss; |
252 uint16_t m_maxBeaconLoss; |
|
253 uint16_t m_maxPacketFail; |
248 //\} |
254 //\} |
249 |
255 |
250 /// Several successive beacons were lost, close link |
256 /// Several successive beacons were lost, close link |
251 void BeaconLoss (); |
257 void BeaconLoss (); |
252 |
258 |