std.socket
Jens Mueller
jens.k.mueller at gmx.de
Wed Nov 2 09:17:07 PDT 2011
Steve Teale wrote:
> Who is the resident expert? Sean maybe?
>
> How do I get the receive buffer size up into the megabytes range for use
> between the D client and localhost. setOption seems to only get me about
> 262k.
How do you do it?
>From the documentation I would expect that
auto sizeInBytes = 10 * 2^^20;
mySocket.setOption(SocketOptionLevel.SOCKET, SocketOption.RCVBUF, sizeInBytes);
should set it to 10 MiB;
I'm unsure about the socket option level. There is also
SocketOptionLevel.IP.
Jens
More information about the Digitalmars-d
mailing list