<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Sockets: 100 Clients]]></title><description><![CDATA[<p>Hi,</p>
<p>ich habe mir von <a href="http://c-worker.ch" rel="nofollow">c-worker.ch</a> den Server und den Client genommen. Wenn ich nun 100 Clients verbinde, dann scheint der Server ab etwa 60 Clients nicht mehr zu reagieren, weil versuche ich bei Client 100 eine Nachricht an den Server zu senden, dann kommt nichts an. Wenn der Client sich trennt, dann wird dies auch nicht erkannt, aber das mysteriöse ist: Mache ich das gleiche mit Client 2, klappt alles perfekt. Warum ist das so?</p>
<p>Source:<br />
Client: <a href="http://c-worker.ch/tuts/sock.c" rel="nofollow">http://c-worker.ch/tuts/sock.c</a><br />
Server: <a href="http://c-worker.ch/tuts/sockselectsrv.c" rel="nofollow">http://c-worker.ch/tuts/sockselectsrv.c</a></p>
<p>Danke für die Hilfe,<br />
Hilfloser</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/225047/sockets-100-clients</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 15:20:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/225047.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Oct 2008 16:01:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Sockets: 100 Clients on Sat, 18 Oct 2008 16:01:42 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich habe mir von <a href="http://c-worker.ch" rel="nofollow">c-worker.ch</a> den Server und den Client genommen. Wenn ich nun 100 Clients verbinde, dann scheint der Server ab etwa 60 Clients nicht mehr zu reagieren, weil versuche ich bei Client 100 eine Nachricht an den Server zu senden, dann kommt nichts an. Wenn der Client sich trennt, dann wird dies auch nicht erkannt, aber das mysteriöse ist: Mache ich das gleiche mit Client 2, klappt alles perfekt. Warum ist das so?</p>
<p>Source:<br />
Client: <a href="http://c-worker.ch/tuts/sock.c" rel="nofollow">http://c-worker.ch/tuts/sock.c</a><br />
Server: <a href="http://c-worker.ch/tuts/sockselectsrv.c" rel="nofollow">http://c-worker.ch/tuts/sockselectsrv.c</a></p>
<p>Danke für die Hilfe,<br />
Hilfloser</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1600871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1600871</guid><dc:creator><![CDATA[Hilfloser]]></dc:creator><pubDate>Sat, 18 Oct 2008 16:01:42 GMT</pubDate></item><item><title><![CDATA[Reply to Sockets: 100 Clients on Sat, 18 Oct 2008 17:39:15 GMT]]></title><description><![CDATA[<p>Vermutlich weil &quot;MAX_CLIENTS&quot; auf 10 steht? und das Beispiel nicht für mehr als 10 gedacht war?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1600914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1600914</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sat, 18 Oct 2008 17:39:15 GMT</pubDate></item><item><title><![CDATA[Reply to Sockets: 100 Clients on Sat, 18 Oct 2008 18:03:24 GMT]]></title><description><![CDATA[<p>Jochen Kalmbach schrieb:</p>
<blockquote>
<p>Vermutlich weil &quot;MAX_CLIENTS&quot; auf 10 steht? und das Beispiel nicht für mehr als 10 gedacht war?</p>
</blockquote>
<p>Quatsch <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> Ich habe es natürlich abgeändert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
<p>Inzwischen habe ich aber die wirklich Ursache für das mysteriöse Problem gefunden. Es gibt nämlich ein Limit bei 63.</p>
<p>Die Lösung:</p>
<pre><code class="language-cpp">#ifdef FD_SETSIZE
#define FD_SETSIZE 101 // 100 Verbindungen
#endif

#include &lt;winsock.h&gt;
// ...
</code></pre>
<p>Viele Grüße,<br />
Hilfloser</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1600927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1600927</guid><dc:creator><![CDATA[Hilfloser]]></dc:creator><pubDate>Sat, 18 Oct 2008 18:03:24 GMT</pubDate></item><item><title><![CDATA[Reply to Sockets: 100 Clients on Sat, 18 Oct 2008 18:27:06 GMT]]></title><description><![CDATA[<p>Das hängt das mit select(..) zusammen:<br />
<a href="http://msdn.microsoft.com/en-us/library/ms740141.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms740141.aspx</a></p>
<p>Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1600937</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1600937</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Sat, 18 Oct 2008 18:27:06 GMT</pubDate></item><item><title><![CDATA[Reply to Sockets: 100 Clients on Sat, 18 Oct 2008 20:35:23 GMT]]></title><description><![CDATA[<p>Hilfloser schrieb:</p>
<blockquote>
<p>Inzwischen habe ich aber die wirklich Ursache für das mysteriöse Problem gefunden. Es gibt nämlich ein Limit bei 63.</p>
</blockquote>
<p>Das wird in den Tutorials aber erklärt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1600997</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1600997</guid><dc:creator><![CDATA[gosha16]]></dc:creator><pubDate>Sat, 18 Oct 2008 20:35:23 GMT</pubDate></item></channel></rss>