Function amqp_set_socket

Synopsis

#include <librabbitmq/amqp_socket.h>

void amqp_set_socket(amqp_connection_state_t state, amqp_socket_t *socket)

Description

Set set the socket object for a connection

This assigns a socket object to the connection, closing and deleting any existing socket

Parameters:

[ in ] state - The connection object to add the socket to

[ in ] socket - The socket object to assign to the connection

Source

Lines 132-135 in librabbitmq/amqp_connection.c. Line 86 in librabbitmq/amqp_socket.h.

void amqp_set_socket(amqp_connection_state_t state, amqp_socket_t *socket) {
  amqp_socket_delete(state->socket);
  state->socket = socket;
}





Add Discussion as Guest

Log in to DocsForge