diff options
-rw-r--r-- | librabbitmq/amqp.h | 4 | ||||
-rw-r--r-- | librabbitmq/amqp_socket.h | 13 |
2 files changed, 13 insertions, 4 deletions
diff --git a/librabbitmq/amqp.h b/librabbitmq/amqp.h index 45e1542..de6eda3 100644 --- a/librabbitmq/amqp.h +++ b/librabbitmq/amqp.h @@ -425,10 +425,6 @@ AMQP_DEPRECATED( ); AMQP_PUBLIC_FUNCTION -void -AMQP_CALL amqp_set_socket(amqp_connection_state_t state, amqp_socket_t *socket); - -AMQP_PUBLIC_FUNCTION int AMQP_CALL amqp_tune_connection(amqp_connection_state_t state, int channel_max, diff --git a/librabbitmq/amqp_socket.h b/librabbitmq/amqp_socket.h index 48910ec..fed3947 100644 --- a/librabbitmq/amqp_socket.h +++ b/librabbitmq/amqp_socket.h @@ -78,6 +78,19 @@ struct iovec { }; #endif + +/** + * Set set the socket object for a connection + * + * This assigns a socket object to the connection, closing and deleting any + * existing socket + * + * \param [in] state The connection object to add the socket to + * \param [in] socket The socket object to assign to the connection + */ +void +amqp_set_socket(amqp_connection_state_t state, amqp_socket_t *socket); + /** * Write to a socket. * |