ws2_32: Implemented SO_CONNECT_TIME stub.

This commit is contained in:
Marcus Meissner 2011-01-26 17:01:09 +01:00 committed by Alexandre Julliard
parent e5cc92f35b
commit 09e29486ae
1 changed files with 14 additions and 0 deletions

View File

@ -2536,6 +2536,20 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
return ret;
}
case WS_SO_CONNECT_TIME:
{
static int pretendtime = 0;
if (!pretendtime) FIXME("WS_SO_CONNECT_TIME - faking results\n");
if (!optlen || *optlen < sizeof(DWORD) || !optval)
{
SetLastError(WSAEFAULT);
return SOCKET_ERROR;
}
*(DWORD*)optval = pretendtime++;
*optlen = sizeof(DWORD);
return ret;
}
/* As mentioned in setsockopt, Windows ignores this, so we
* always return true here */
case WS_SO_DONTROUTE: