Commit 8312539e authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

ws2_32: Use IOCTL_AFD_WINE_GET_SO_RCVBUF.

parent 388e7a76
...@@ -2090,7 +2090,6 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level, ...@@ -2090,7 +2090,6 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
/* Handle common cases. The special cases are below, sorted /* Handle common cases. The special cases are below, sorted
* alphabetically */ * alphabetically */
case WS_SO_RCVBUF:
case WS_SO_REUSEADDR: case WS_SO_REUSEADDR:
case WS_SO_SNDBUF: case WS_SO_SNDBUF:
if ( (fd = get_sock_fd( s, 0, NULL )) == -1) if ( (fd = get_sock_fd( s, 0, NULL )) == -1)
...@@ -2285,6 +2284,10 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level, ...@@ -2285,6 +2284,10 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level,
} }
return ret ? 0 : SOCKET_ERROR; return ret ? 0 : SOCKET_ERROR;
} }
case WS_SO_RCVBUF:
return server_getsockopt( s, IOCTL_AFD_WINE_GET_SO_RCVBUF, optval, optlen );
case WS_SO_RCVTIMEO: case WS_SO_RCVTIMEO:
case WS_SO_SNDTIMEO: case WS_SO_SNDTIMEO:
{ {
......
...@@ -1224,7 +1224,7 @@ static void test_set_getsockopt(void) ...@@ -1224,7 +1224,7 @@ static void test_set_getsockopt(void)
value = 0xdeadbeef; value = 0xdeadbeef;
err = getsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&value, &size); err = getsockopt(s, SOL_SOCKET, SO_RCVBUF, (char *)&value, &size);
ok( !err, "getsockopt(SO_RCVBUF) failed error: %u\n", WSAGetLastError() ); ok( !err, "getsockopt(SO_RCVBUF) failed error: %u\n", WSAGetLastError() );
todo_wine ok( value == 4096, "expected 4096, got %u\n", value ); ok( value == 4096, "expected 4096, got %u\n", value );
/* SO_LINGER */ /* SO_LINGER */
for( i = 0; i < ARRAY_SIZE(linger_testvals);i++) { for( i = 0; i < ARRAY_SIZE(linger_testvals);i++) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment