Function amqp_get_heartbeat

Synopsis

#include <librabbitmq/amqp.h>

int amqp_get_heartbeat(amqp_connection_state_t state)

Description

Get the number of seconds between heartbeats of the connection

The number of seconds between heartbeats is set when connection negotiation takes place in amqp_login() or amqp_login_with_properties().

Parameters:

[ in ] state - the connection object

Return
the number of seconds between heartbeats.
Since
v0.6

Source

Lines 185-187 in librabbitmq/amqp_connection.c. Line 1158 in librabbitmq/amqp.h.

int amqp_get_heartbeat(amqp_connection_state_t state) {
  return state->heartbeat;
}





Add Discussion as Guest

Log in to DocsForge