MCPcopy Create free account
hub / github.com/Tencent/UnLua / io_strerror

Function io_strerror

Plugins/UnLuaExtensions/LuaSocket/Source/src/io.cpp:21–28  ·  view source on GitHub ↗

-------------------------------------------------------------------------*\ * I/O error strings \*-------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

19* I/O error strings
20\*-------------------------------------------------------------------------*/
21const char *io_strerror(int err) {
22 switch (err) {
23 case IO_DONE: return NULL;
24 case IO_CLOSED: return "closed";
25 case IO_TIMEOUT: return "timeout";
26 default: return "unknown error";
27 }
28}

Callers 4

socket_hoststrerrorFunction · 0.85
socket_strerrorFunction · 0.85
socket_hoststrerrorFunction · 0.85
socket_strerrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected