aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorClaudiu Olteanu <claudiu@140774ce-b5e7-0310-ab8b-a85725594a96>2013-09-19 10:34:38 +0000
committerClaudiu Olteanu <claudiu@140774ce-b5e7-0310-ab8b-a85725594a96>2013-09-19 10:34:38 +0000
commit087783d2a3da65123b8aa339148f33978fa704df (patch)
tree8d2ee45c28af40420417220a3c1fa315fbfbd5fb /src/transport
parentde0c0bc6e16e21087f8f7eb6c9d5450884e5fae8 (diff)
solving some binding errors for W32
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-helper-transport-bluetooth.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/transport/gnunet-helper-transport-bluetooth.c b/src/transport/gnunet-helper-transport-bluetooth.c
index bdf3974012..f07fd23aa7 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;
}