Function amqp_socket_send

Synopsis

#include <librabbitmq/amqp_socket.h>

ssize_t amqp_socket_send(amqp_socket_t *self, const void *buf, size_t len, int flags)

Description

Send a message from a socket.

This function wraps send(2) functionality.

This function will only return on error, or when all of the bytes in buf have been sent, or when an error occurs.

Parameters:

[ in,out ] self - A socket object.

[ in ] buf - A buffer to read from.

[ in ] len - The number of bytes in buf.

-

Source

Lines 121-126 in librabbitmq/amqp_socket.c. Line 103 in librabbitmq/amqp_socket.h.

ssize_t amqp_socket_send(amqp_socket_t *self, const void *buf, size_t len,
                         int flags) {
  assert(self);
  assert(self->klass->send);
  return self->klass->send(self, buf, len, flags);
}





Add Discussion as Guest

Log in to DocsForge