Im trying to connect to a port on an ip address, but if the ip cannot be reached the program will hang for a few seconds while it tries to connect. I am looking for an example of how to do a non-blocking port connection. also with an explanation of each part