=========================================================================*\ * Lua methods \*=========================================================================*/
| 146 | * Lua methods |
| 147 | \*=========================================================================*/ |
| 148 | static 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 |
no test coverage detected