MCPcopy Create free account
hub / github.com/defold/defold / socket_hoststrerror

Function socket_hoststrerror

engine/script/src/luasocket/wsocket.c:333–339  ·  view source on GitHub ↗

-------------------------------------------------------------------------*\ * Error translation functions \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

331* Error translation functions
332\*-------------------------------------------------------------------------*/
333const char *socket_hoststrerror(int err) {
334 if (err <= 0) return io_strerror(err);
335 switch (err) {
336 case WSAHOST_NOT_FOUND: return "host not found";
337 default: return wstrerror(err);
338 }
339}
340
341const char *socket_strerror(int err) {
342 if (err <= 0) return io_strerror(err);

Callers 2

inet_global_tohostnameFunction · 0.70
inet_global_toipFunction · 0.70

Calls 2

io_strerrorFunction · 0.85
wstrerrorFunction · 0.85

Tested by

no test coverage detected