Function amqp_socket_get_sockfd

Synopsis

#include <librabbitmq/amqp.h>

int amqp_socket_get_sockfd(amqp_socket_t *self)

Description

Get the socket descriptor in use by a socket object.

Retrieve the underlying socket descriptor. This function can be used to perform low-level socket operations that aren't supported by the socket interface. Use with caution!

Parameters:

[ in,out ] self - A socket object.

Return
The underlying socket descriptor, or -1 if there is no socket descriptor associated with
Since
v0.4.0

Source

Lines 161-165 in librabbitmq/amqp_socket.c. Line 2386 in librabbitmq/amqp.h.

int amqp_socket_get_sockfd(amqp_socket_t *self) {
  assert(self);
  assert(self->klass->get_sockfd);
  return self->klass->get_sockfd(self);
}





Add Discussion as Guest

Log in to DocsForge