Is SO_RCVTIMEO not supported on Linux ?
Hi, I am facing a problem regarding the setsockopt() function in Linux OS. When i try to set the option for general socket code i.e. SOL_SOCKET, i am unable to place a timeout on socket receives and sends (SO_RCVTIMEO and SO_SNDTIMEO). This is giving me an error constantly.
When i use the setsockopt() function as shown below, i get the following error.
setsockopt(m_iSockRxRaw, SOL_SOCKET, SO_RCVTIMEO, (char*)&timeout, sizeof(timeout));
The error is 92: Protocol not available
setsockopt(m_iSockRxRaw, SOL_SOCKET, SO_SNDTIMEO, (char*)&timeout, sizeof(timeout));
The error is 92: Protocol not available
|