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

Function udp_strerror

Plugins/UnLuaExtensions/LuaSocket/Source/src/udp.cpp:148–153  ·  view source on GitHub ↗

=========================================================================*\ * Lua methods \*=========================================================================*/

Source from the content-addressed store, hash-verified

146* Lua methods
147\*=========================================================================*/
148static const char *udp_strerror(int err) {
149 /* a 'closed' error on an unconnected means the target address was not
150 * accepted by the transport layer */
151 if (err == IO_CLOSED) return "refused";
152 else return socket_strerror(err);
153}
154
155/*-------------------------------------------------------------------------*\
156* Send data through connected udp socket

Callers 4

meth_sendFunction · 0.85
meth_sendtoFunction · 0.85
meth_receiveFunction · 0.85
meth_receivefromFunction · 0.85

Calls 1

socket_strerrorFunction · 0.70

Tested by

no test coverage detected