rabbitmq-c
0.5.3
C AMQP Client library for RabbitMQ
|
Go to the source code of this file.
Functions | |
amqp_socket_t * | amqp_websocket_new (amqp_connection_state_t state) |
Creates a new amqp_socket_t object. | |
websocket_t * | amqp_websocket_get (amqp_socket_t *self) |
Returns the pointer to underlying kws_websocket_t object. | |
int | amqp_websocket_open (amqp_socket_t *self, const char *url) |
Open a WebSocket connection. |
websocket_t* amqp_websocket_get | ( | amqp_socket_t * | self | ) |
Returns the pointer to underlying kws_websocket_t object.
amqp_socket_t* amqp_websocket_new | ( | amqp_connection_state_t | state | ) |
Creates a new amqp_socket_t object.
The amqp_socket_t is the abstract base structure that encapsulates the underlying transport layer based on the API used to create it. The underlying transport used is this case is WebSocket. The function should be called after allocating and initializing a new amqp_connection_state_t object via amqp_new_connection()
int amqp_websocket_open | ( | amqp_socket_t * | self, |
const char * | url | ||
) |
Open a WebSocket connection.
This function establishes the WebSocket connection to enable AMQP messaging over the WebSocket connection.
This function should be called after initializing connection using amqp_new_connection() and creating a WebSocket object using amqp_websocket_new().
[in,out] | self | A socket object. |
[in] | url | A connection url. The url is comprised of <scheme>://<host>[:port]/[path] For example: ws://localhost:8001/amqp. For secure connection use wss as a scheme. |