MCPcopy Create free account
hub / github.com/ZDoom/Raze / neterror

Function neterror

source/common/engine/i_net.cpp:1096–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1094}
1095#ifdef __WIN32__
1096const char *neterror (void)
1097{
1098 static char neterr[16];
1099 int code;
1100
1101 switch (code = WSAGetLastError ()) {
1102 case WSAEACCES: return "EACCES";
1103 case WSAEADDRINUSE: return "EADDRINUSE";
1104 case WSAEADDRNOTAVAIL: return "EADDRNOTAVAIL";
1105 case WSAEAFNOSUPPORT: return "EAFNOSUPPORT";
1106 case WSAEALREADY: return "EALREADY";
1107 case WSAECONNABORTED: return "ECONNABORTED";
1108 case WSAECONNREFUSED: return "ECONNREFUSED";
1109 case WSAECONNRESET: return "ECONNRESET";
1110 case WSAEDESTADDRREQ: return "EDESTADDRREQ";
1111 case WSAEFAULT: return "EFAULT";
1112 case WSAEHOSTDOWN: return "EHOSTDOWN";
1113 case WSAEHOSTUNREACH: return "EHOSTUNREACH";
1114 case WSAEINPROGRESS: return "EINPROGRESS";
1115 case WSAEINTR: return "EINTR";
1116 case WSAEINVAL: return "EINVAL";
1117 case WSAEISCONN: return "EISCONN";
1118 case WSAEMFILE: return "EMFILE";
1119 case WSAEMSGSIZE: return "EMSGSIZE";
1120 case WSAENETDOWN: return "ENETDOWN";
1121 case WSAENETRESET: return "ENETRESET";
1122 case WSAENETUNREACH: return "ENETUNREACH";
1123 case WSAENOBUFS: return "ENOBUFS";
1124 case WSAENOPROTOOPT: return "ENOPROTOOPT";
1125 case WSAENOTCONN: return "ENOTCONN";
1126 case WSAENOTSOCK: return "ENOTSOCK";
1127 case WSAEOPNOTSUPP: return "EOPNOTSUPP";
1128 case WSAEPFNOSUPPORT: return "EPFNOSUPPORT";
1129 case WSAEPROCLIM: return "EPROCLIM";
1130 case WSAEPROTONOSUPPORT: return "EPROTONOSUPPORT";
1131 case WSAEPROTOTYPE: return "EPROTOTYPE";
1132 case WSAESHUTDOWN: return "ESHUTDOWN";
1133 case WSAESOCKTNOSUPPORT: return "ESOCKTNOSUPPORT";
1134 case WSAETIMEDOUT: return "ETIMEDOUT";
1135 case WSAEWOULDBLOCK: return "EWOULDBLOCK";
1136 case WSAHOST_NOT_FOUND: return "HOST_NOT_FOUND";
1137 case WSANOTINITIALISED: return "NOTINITIALISED";
1138 case WSANO_DATA: return "NO_DATA";
1139 case WSANO_RECOVERY: return "NO_RECOVERY";
1140 case WSASYSNOTREADY: return "SYSNOTREADY";
1141 case WSATRY_AGAIN: return "TRY_AGAIN";
1142 case WSAVERNOTSUPPORTED: return "VERNOTSUPPORTED";
1143 case WSAEDISCON: return "EDISCON";
1144
1145 default:
1146 mysnprintf (neterr, countof(neterr), "%d", code);
1147 return neterr;
1148 }
1149}
1150#endif

Callers 4

UDPsocketFunction · 0.85
BindToLocalPortFunction · 0.85
PacketGetFunction · 0.85
BuildAddressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected