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
I tried it by passing it like the folloing
int iTimeout = 1600; iRet = setsockopt( pSapManager->m_cSocket, SOL_SOCKET, SO_RCVTIMEO, /* reinterpret_cast(&tv), sizeof(timeval) ); */ (const char *)&iTimeout, sizeof(iTimeout) );
and run it!!