Hi Afernando,
You could check if your Operating System at the specific level supports SO_RCVTIMEO. At some older levels of OS's these settings are fixed settings and cannot be altered or even read.
The syntax seems correct. Could it be for a specific socket type this option is not supported?
Good luck!
Main Topics
Browse All Topics





by: sunnycoderPosted on 2004-01-05 at 22:06:32ID: 10050042
Hi afernando,
perhaps you meant to organize it this way
int ret;
ret = setsockopt (sockID, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof tv );
if ( ret != 0 )
cout << perror("setsockopt") << endl;
your current code will print an error meessage even if the call succeeds
Cheers!
Sunny:o)