mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 13:34:53 +00:00
[MSAFD] Implement socket options SO_SNDBUF and SO_RCVBUF
This commit is contained in:
parent
6bf5a8a43d
commit
6bc61f63f1
|
@ -2866,8 +2866,21 @@ WSPSetSockOpt(
|
|||
return SOCKET_ERROR;
|
||||
}
|
||||
|
||||
/* TODO: The total per-socket buffer space reserved for sends */
|
||||
ERR("Setting send buf to %x is not implemented yet\n", optval);
|
||||
SetSocketInformation(Socket,
|
||||
AFD_INFO_SEND_WINDOW_SIZE,
|
||||
NULL,
|
||||
(PULONG)optval,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
GetSocketInformation(Socket,
|
||||
AFD_INFO_SEND_WINDOW_SIZE,
|
||||
NULL,
|
||||
&Socket->SharedData->SizeOfSendBuffer,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
return NO_ERROR;
|
||||
|
||||
case SO_RCVBUF:
|
||||
|
@ -2877,8 +2890,21 @@ WSPSetSockOpt(
|
|||
return SOCKET_ERROR;
|
||||
}
|
||||
|
||||
/* TODO: The total per-socket buffer space reserved for receives */
|
||||
ERR("Setting receive buf to %x is not implemented yet\n", optval);
|
||||
SetSocketInformation(Socket,
|
||||
AFD_INFO_RECEIVE_WINDOW_SIZE,
|
||||
NULL,
|
||||
(PULONG)optval,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
GetSocketInformation(Socket,
|
||||
AFD_INFO_RECEIVE_WINDOW_SIZE,
|
||||
NULL,
|
||||
&Socket->SharedData->SizeOfSendBuffer,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
|
||||
return NO_ERROR;
|
||||
|
||||
case SO_ERROR:
|
||||
|
|
Loading…
Reference in a new issue