Added an message text for additional socket error which can be expected to happen on windows
This commit is contained in:
parent
6f44a394e6
commit
6fd3e5f498
2 changed files with 2 additions and 0 deletions
|
@ -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}
|
||||
};
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue