From d61d16313cb036a60adf0a8e80914904b0c9d817 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Thu, 15 Aug 2013 14:20:50 +0000 Subject: [PATCH] - try with TCP --- src/testing/bindfail.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/testing/bindfail.c b/src/testing/bindfail.c index 7ff7c6138..629c82df6 100644 --- a/src/testing/bindfail.c +++ b/src/testing/bindfail.c @@ -7,10 +7,12 @@ int main() struct GNUNET_NETWORK_Handle *sock1; struct GNUNET_NETWORK_Handle *sock2; struct sockaddr_in addr; + int proto; + proto = SOCK_STREAM; (void) memset (&addr, 0, sizeof (struct sockaddr_in)); - sock1 = GNUNET_NETWORK_socket_create (AF_INET, SOCK_DGRAM, 0); - sock2 = GNUNET_NETWORK_socket_create (AF_INET, SOCK_DGRAM, 0); + sock1 = GNUNET_NETWORK_socket_create (AF_INET, proto, 0); + sock2 = GNUNET_NETWORK_socket_create (AF_INET, proto, 0); addr.sin_port = htons (port); addr.sin_addr.s_addr = INADDR_ANY; -- 2.25.1