Added an message text for additional socket error which can be expected to happen on windows

This commit is contained in:
Mark Pizzolato 2013-04-12 12:58:08 -07:00
parent 6f44a394e6
commit 6fd3e5f498
2 changed files with 2 additions and 0 deletions

View file

@ -136,6 +136,7 @@ static struct sock_errors {
{WSAECONNREFUSED, "Connection refused"},
{WSAEHOSTUNREACH, "No route to host"},
{WSAEADDRINUSE, "Address already in use "},
{WSAEACCES, "Permission denied"},
{0, NULL}
};

View file

@ -66,6 +66,7 @@
#define WSAECONNREFUSED ECONNREFUSED
#define WSAEHOSTUNREACH EHOSTUNREACH
#define WSAEADDRINUSE EADDRINUSE
#define WSAEACCES EACCES
#define INVALID_SOCKET ((SOCKET)-1)
#define SOCKET_ERROR -1
#include <sys/types.h> /* for fcntl, getpid */