How can use Time Out for any function or thread?
-
Hi all, i checking the link status some times it takes so much time i want if the link status is not return in 2 min its time out this function and process further commands and functions. please tell me how can i do this. thanks in advance.
There are non-blocking sockets or HTTP libraries/classes you could use. Good luck! :)
-
Hi all, i checking the link status some times it takes so much time i want if the link status is not return in 2 min its time out this function and process further commands and functions. please tell me how can i do this. thanks in advance.
When I did this, I called
HttpSendRequest()
in a separate thread. See MSDN article Q224318 for details."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Hi all, i checking the link status some times it takes so much time i want if the link status is not return in 2 min its time out this function and process further commands and functions. please tell me how can i do this. thanks in advance.