From 087783d2a3da65123b8aa339148f33978fa704df Mon Sep 17 00:00:00 2001 From: Claudiu Olteanu Date: Thu, 19 Sep 2013 10:34:38 +0000 Subject: solving some binding errors for W32 --- src/transport/gnunet-helper-transport-bluetooth.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/transport/gnunet-helper-transport-bluetooth.c') diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c index bdf397401..f07fd23aa 100644 --- a/src/transport/gnunet-helper-transport-bluetooth.c +++ b/src/transport/gnunet-helper-transport-bluetooth.c @@ -1092,6 +1092,11 @@ open_device (struct HardwareInfos *dev) if (GNUNET_NETWORK_socket_bind (dev->handle, (const SOCKADDR*)&addr, sizeof (SOCKADDR_BTH), 0) != GNUNET_OK) { fprintf (stderr, "Failed to bind the socket: "); + if (GetLastError() == WSAENETDOWN) + { + fprintf (stderr, "Please make sure that your Bluetooth device is ON!\n"); + ExitProcess (2); + } print_last_error(); return -1; } -- cgit v1.2.3