summaryrefslogtreecommitdiff
path: root/librabbitmq/amqp_socket.c
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2013-07-23 09:41:37 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2013-07-23 09:41:37 -0700
commit7a451a42c93ba819c18bbbdf189a4e5fbaf64054 (patch)
treeeec2bd4d452a1cd0f71f7c029ea1b284533ebf41 /librabbitmq/amqp_socket.c
parent59f943b0e4ce884ca5b518e7c20fb4ff938d0474 (diff)
downloadrabbitmq-c-7a451a42c93ba819c18bbbdf189a4e5fbaf64054.tar.gz
FIX: amqp_open_socket not defined.
This fixes a regression introduced in 6ad770dc where the amqp_open_socket() function is no longer defined.
Diffstat (limited to 'librabbitmq/amqp_socket.c')
-rw-r--r--librabbitmq/amqp_socket.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/librabbitmq/amqp_socket.c b/librabbitmq/amqp_socket.c
index c3df367..87673aa 100644
--- a/librabbitmq/amqp_socket.c
+++ b/librabbitmq/amqp_socket.c
@@ -251,6 +251,13 @@ amqp_socket_get_sockfd(amqp_socket_t *self)
return self->klass->get_sockfd(self);
}
+int
+amqp_open_socket(char const *hostname,
+ int portnumber)
+{
+ return amqp_open_socket_noblock(hostname, portnumber, NULL);
+}
+
int amqp_open_socket_noblock(char const *hostname,
int portnumber,
struct timeval *timeout)