wuxz
asked on
How to set timeout option of a socket?
Hi,
I want to set the timeout option of a socket, given a socket handle. I us my own protocol other than http. Can anyone help me?
Thanks in advance.
I want to set the timeout option of a socket, given a socket handle. I us my own protocol other than http. Can anyone help me?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You have to use setsockopt() function with proper arguments. If you use MFC then there is function CAsyncSocket::SetSockOpt()
ASKER
Thank you, I find that I have missed those two options in document.
Regards
wu xz
Regards
wu xz