35 #include "amqp_private.h"
36 #include "amqp_time.h"
46 } amqp_socket_flag_enum;
51 } amqp_socket_close_enum;
54 amqp_os_socket_error(
void);
57 amqp_os_socket_close(
int sockfd);
60 typedef ssize_t (*amqp_socket_send_fn)(
void *,
const void *, size_t, int);
61 typedef ssize_t (*amqp_socket_recv_fn)(
void *,
void *, size_t, int);
62 typedef int (*amqp_socket_open_fn)(
void *,
const char *, int,
struct timeval *);
63 typedef int (*amqp_socket_close_fn)(
void *, amqp_socket_close_enum);
64 typedef int (*amqp_socket_get_sockfd_fn)(
void *);
65 typedef void (*amqp_socket_delete_fn)(
void *);
69 amqp_socket_send_fn send;
70 amqp_socket_recv_fn recv;
71 amqp_socket_open_fn open;
72 amqp_socket_close_fn close;
73 amqp_socket_get_sockfd_fn get_sockfd;
74 amqp_socket_delete_fn
delete;
112 amqp_socket_send(amqp_socket_t *
self,
const void *buf,
size_t len,
int flags);
130 amqp_socket_recv(amqp_socket_t *
self,
void *buf,
size_t len,
int flags);
146 amqp_socket_close(amqp_socket_t *
self, amqp_socket_close_enum force);
154 amqp_socket_delete(amqp_socket_t *
self);
171 amqp_open_socket_noblock(
char const *hostname,
int portnumber,
struct timeval *timeout);
173 int amqp_open_socket_inner(
char const *hostname,
int portnumber,
178 int amqp_poll(
int fd,
int event,
amqp_time_t deadline);
182 void *decoded,
int flags);
uint16_t amqp_channel_t
Channel type.
Definition: amqp.h:389
V-table for amqp_socket_t.
Definition: amqp_socket.h:68
AMQP field table.
Definition: amqp.h:423
An AMQP frame.
Definition: amqp.h:590
uint32_t amqp_method_number_t
Method number.
Definition: amqp.h:375
Abstract base class for amqp_socket_t.
Definition: amqp_socket.h:78
amqp_sasl_method_enum
SASL method type.
Definition: amqp.h:654
Buffer descriptor.
Definition: amqp.h:396
A memory pool.
Definition: amqp.h:559
struct amqp_connection_state_t_ * amqp_connection_state_t
connection state object
Definition: amqp.h:665
Definition: amqp_time.h:57