Get the latest error message from SDL_net.
Defined in <SDL_net.h>
const char * SDLNet_GetError(void);
(const char *) Returns the last set error message in UTF-8 encoding.
The error message, depending on how SDL_net was built, may or may not be thread-local data. Sometimes things will set an error message when no failure was reported; the error string is only meaningful right after a public API reports a failure, and should be ignored otherwise.
This function is available since SDL_net 2.0.0.