mirror of
https://github.com/open-simh/simh.git
synced 2026-04-26 04:07:23 +00:00
Added an message text for additional socket error which can be expected to happen on windows
This commit is contained in:
@@ -136,6 +136,7 @@ static struct sock_errors {
|
|||||||
{WSAECONNREFUSED, "Connection refused"},
|
{WSAECONNREFUSED, "Connection refused"},
|
||||||
{WSAEHOSTUNREACH, "No route to host"},
|
{WSAEHOSTUNREACH, "No route to host"},
|
||||||
{WSAEADDRINUSE, "Address already in use "},
|
{WSAEADDRINUSE, "Address already in use "},
|
||||||
|
{WSAEACCES, "Permission denied"},
|
||||||
{0, NULL}
|
{0, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,7 @@
|
|||||||
#define WSAECONNREFUSED ECONNREFUSED
|
#define WSAECONNREFUSED ECONNREFUSED
|
||||||
#define WSAEHOSTUNREACH EHOSTUNREACH
|
#define WSAEHOSTUNREACH EHOSTUNREACH
|
||||||
#define WSAEADDRINUSE EADDRINUSE
|
#define WSAEADDRINUSE EADDRINUSE
|
||||||
|
#define WSAEACCES EACCES
|
||||||
#define INVALID_SOCKET ((SOCKET)-1)
|
#define INVALID_SOCKET ((SOCKET)-1)
|
||||||
#define SOCKET_ERROR -1
|
#define SOCKET_ERROR -1
|
||||||
#include <sys/types.h> /* for fcntl, getpid */
|
#include <sys/types.h> /* for fcntl, getpid */
|
||||||
|
|||||||
Reference in New Issue
Block a user