DUNE: Uniform Navigational Environment
2019.02.1
|
This class represents an SBD transmission request.
Public Member Functions | |
TxRequest (uint16_t src_adr, uint8_t src_eid, uint16_t req_id, unsigned ttl, const std::vector< char > &data) | |
uint16_t | getSource (void) const |
uint8_t | getSourceEntity (void) const |
uint16_t | getId (void) const |
bool | hasValidMSN (void) const |
uint16_t | getMSN (void) const |
void | setMSN (uint16_t msn) |
void | invalidateMSN (void) |
const std::vector< uint8_t > & | getData (void) const |
double | getExpiration (void) const |
bool | hasExpired (void) const |
|
inline |
Create a transmission request object.
[in] | src_adr | IMC address of the requester. |
[in] | src_eid | entity identifier of the requester. |
[in] | req_id | request identifier. |
[in] | ttl | time-to-live (s). |
[in] | data | to transmit. |
References DUNE::Time::Clock::get().
|
inline |
|
inline |
Retrieve expiration time.
Referenced by Transports::IridiumSBD::Task::enqueueTxRequest(), and hasExpired().
|
inline |
Retrieve request identifier.
Referenced by Transports::IridiumSBD::Task::sendTxRequestStatus().
|
inline |
Retrieve MO message sequence number.
Referenced by Transports::IridiumSBD::Task::dequeueTxRequest(), and Transports::IridiumSBD::Task::invalidateTxRequest().
|
inline |
Retrieve the IMC address of the requester.
Referenced by Transports::IridiumSBD::Task::sendTxRequestStatus().
|
inline |
Retrieve the entity identifier of the requester.
Referenced by Transports::IridiumSBD::Task::sendTxRequestStatus().
|
inline |
Test if request expired.
References DUNE::Time::Clock::get(), and getExpiration().
|
inline |
Test if MSN is valid.
Referenced by Transports::IridiumSBD::Task::dequeueTxRequest(), and Transports::IridiumSBD::Task::invalidateTxRequest().
|
inline |
Referenced by Transports::IridiumSBD::Task::invalidateTxRequest().
|
inline |
Retrieve MO message sequence number.
Referenced by Transports::IridiumSBD::Task::processQueue().