Returns a human-readable string representing the error message (err)
| 653 | |
| 654 | // Returns a human-readable string representing the error message (err) |
| 655 | static char *SocketErrorCodeToString(int err) |
| 656 | { |
| 657 | #if defined(_WIN32) |
| 658 | static char gaiStrErrorBuffer[GAI_STRERROR_BUFFER_SIZE]; |
| 659 | TRACELOG(LOG_INFO, gaiStrErrorBuffer, "%s", gai_strerror(err)); |
| 660 | return gaiStrErrorBuffer; |
| 661 | #else |
| 662 | return gai_strerror(err); |
| 663 | #endif |
| 664 | } |
| 665 | |
| 666 | // Set the defaults in the supplied SocketConfig if they're not already set |
| 667 | static bool SocketSetDefaults(SocketConfig *config) |
no outgoing calls
no test coverage detected