SDLNet_ResolveHost
always return 0 no matter if there is any host on that IP and port. According to the documentation it should return -1 when an error occurs.
How can a non existing host be detected?
SDLNet_ResolveHost
always return 0 no matter if there is any host on that IP and port. According to the documentation it should return -1 when an error occurs.
How can a non existing host be detected?
Copyright © 2021 Jogjafile Inc.
Ok, so I found the solution.
SDLNet_TCP_Open
will returnNULL
when an error occurs.