I'm using the ConnectToTCPServer function to try to connect to a TCP server, but when I change the port to something invalid, the function does not return an error. How can I poll the connection to determine whether I'm connected in a gracefull manner?
↧