I'm trying to make a connect timeout, and i have implemented this by starting a timeout thread. This works well, but throws an exception.
How can i terminate the connection attempt, and return SOCKET_ERROR?
This is a discussion on Cancel socketconnect within the Networking/Device Communication forums, part of the General Programming Boards category; I'm trying to make a connect timeout, and i have implemented this by starting a timeout thread. This works well, ...
I'm trying to make a connect timeout, and i have implemented this by starting a timeout thread. This works well, but throws an exception.
How can i terminate the connection attempt, and return SOCKET_ERROR?
Solved my problem, thanks!