-------------------------------------------------------------------------*\ * Error translation functions \*-------------------------------------------------------------------------*/
| 331 | * Error translation functions |
| 332 | \*-------------------------------------------------------------------------*/ |
| 333 | const 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 | |
| 341 | const char *socket_strerror(int err) { |
| 342 | if (err <= 0) return io_strerror(err); |
no test coverage detected