Hi guys,
Thank you for your responses. It seems very strange to me that one can use setsockopt function to set timeouts. Look at the link below, the Microsoft clearly list options SO_RCVTIMEO and SO_SNDTIMEO as not supported by setsockopt function. Are they wrong...
I have an application that uses sockets. At some point It checks whether the certain IP address exists in our network. In order to do that I create raw socket. Here is code segment:
SOCKET sockRaw = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
if(sockRaw == INVALID_SOCKET)
{...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.