trq_set_ack_timer()

trq_set_ack_timer()#

Sets an acknowledgment timer for the given q_msg message, specifying the timeout in seconds.

Prototype

time_t trq_set_ack_timer(
    q_msg  msg,
    time_t seconds
);

Parameters

Key

Type

Description

msg

q_msg

The message for which the acknowledgment timer is being set.

seconds

time_t

The timeout duration in seconds before the acknowledgment timer expires.


Return Value

Returns the previously set acknowledgment timer value in seconds.

Notes

Use trq_test_ack_timer() to check if the acknowledgment timer has expired.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples