>From what I remember, there's an incredible number of settings for setsockopt, many more than are listed on that page.<div><br></div><div>This page makes reference to being able to set the receive window size, but the link it points to doesn't list what the parameter is called.</div>
<div><a href="http://msdn.microsoft.com/en-us/library/ms819736.aspx">http://msdn.microsoft.com/en-us/library/ms819736.aspx</a></div><div><br></div><div>Or you could just do what too many Windows developers do - require your application to be run with Administrative privileges and change the registry setting manually :P</div>
<div>--</div><div>Chris Pollock<br>::loss4words::versatile solutions for modern living::<br>w: <a href="http://loss4words.com">http://loss4words.com</a><br>e: <a href="mailto:chris@loss4words.com">chris@loss4words.com</a><br>
m: 0410 747 765<br>f: 07 3129 2351<br>
<br><br><div class="gmail_quote">On Sat, Jun 19, 2010 at 8:33 PM, Dmitri Kalintsev <span dir="ltr"><<a href="mailto:dek735@gmail.com">dek735@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Chris,<br><br>Thanks for that. The idea that an application could potentially work around system-wide settings is intriguing, but the description of setsockopt() does not seem to indicate the possibility to set send and/or receive windows size, which are the parameters in question:<br>
<br><a href="http://msdn.microsoft.com/en-us/library/ms740476%28VS.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/ms740476%28VS.85%29.aspx</a><br><br>I would gladly stand corrected, as this is a very interesting and relevant question. The reason why it is, is because the topic of performance of TCP applications over "long fat pipe" type of transmission infrastructure keeps on coming up from customers I land up dealing with (indirectly) in a pretty persistent fashion.<br>
<br><div class="gmail_quote"><div class="im">On Sat, Jun 19, 2010 at 8:17 PM, Chris Pollock <span dir="ltr"><<a href="mailto:youare@loss4words.com" target="_blank">youare@loss4words.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">
Handled on the OS level by default, yes. The application can do something about it though, using t<font face="'Segoe UI', Verdana, Arial">he "setssockopt" function, which sets it on a per-socket basis IIRC.</font></blockquote>
</div><div><br>Regards,<br><br>-- D <br></div></div>
</blockquote></div><br></div>