i tried calling the connect() function but the problem is if there is no response then it just hangs. i was wondering if there is any way to set a timeout . if theirs not maybe someone knows a better function then connect(), which will try to set up a tcp connection, and has a timeout option. thanks.
peace out