I\'m trying to set up a blocking socket to timeout after 16 ms of trying to recvfrom() on a port. Platform is Windows. I\'ve looked at tons of examples online and it seems
WINDOWS: Timeout value is a DWORD in milliseconds, address passed to setsockopt() is const char *
LINUX: Timeout value is a struct timeval, address passed to setsockopt() is const void *
Source: http://forums.codeguru.com/showthread.php?t=353217