Marcus Meissner : ws2_32: Implemented SO_CONNECT_TIME stub.
Alexandre Julliard
julliard at winehq.org
Wed Jan 26 10:43:55 CST 2011
Module: wine
Branch: master
Commit: 09e29486aebe758263365fc328aab8c6470b6bd2
URL: http://source.winehq.org/git/wine.git/?a=commit;h=09e29486aebe758263365fc328aab8c6470b6bd2
Author: Marcus Meissner <meissner at suse.de>
Date: Wed Jan 26 17:01:09 2011 +0100
ws2_32: Implemented SO_CONNECT_TIME stub.
---
dlls/ws2_32/socket.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
index 774481d..f3a521c 100644
--- a/dlls/ws2_32/socket.c
+++ b/dlls/ws2_32/socket.c
@@ -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:
More information about the wine-cvs
mailing list