<?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[Server mit nur einem Thread?]]></title><description><![CDATA[<p>Hi.<br />
Ich will einen server für so ein spiel schreiben. Da bei threads dieser ganze andere krams dazugeschrieben werden muss, würde ich gerne mit nur einen einzelnen thread benutzen. select() macht sich eher schlecht, da ich jede 500 ms DoPhysicsStep() oder so was aufrufen muss. Was sollte ich benutzen?</p>
<p>Danke im voraus... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/270773/server-mit-nur-einem-thread</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 22:11:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/270773.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 Jul 2010 22:26:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sat, 17 Jul 2010 22:26:43 GMT]]></title><description><![CDATA[<p>Hi.<br />
Ich will einen server für so ein spiel schreiben. Da bei threads dieser ganze andere krams dazugeschrieben werden muss, würde ich gerne mit nur einen einzelnen thread benutzen. select() macht sich eher schlecht, da ich jede 500 ms DoPhysicsStep() oder so was aufrufen muss. Was sollte ich benutzen?</p>
<p>Danke im voraus... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1927885</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1927885</guid><dc:creator><![CDATA[lk]]></dc:creator><pubDate>Sat, 17 Jul 2010 22:26:43 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sat, 17 Jul 2010 23:22:44 GMT]]></title><description><![CDATA[<p>lk schrieb:</p>
<blockquote>
<p>select() macht sich eher schlecht, da ich jede 500 ms DoPhysicsStep() oder so was aufrufen muss. Was sollte ich benutzen?</p>
</blockquote>
<p><code>select()</code><br />
Wenn man die Funktion richtig benutzt, blockiert die nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1927904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1927904</guid><dc:creator><![CDATA[TyRoXx]]></dc:creator><pubDate>Sat, 17 Jul 2010 23:22:44 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sat, 17 Jul 2010 23:33:35 GMT]]></title><description><![CDATA[<p>UDP nutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1927906</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1927906</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Sat, 17 Jul 2010 23:33:35 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sun, 18 Jul 2010 04:06:53 GMT]]></title><description><![CDATA[<p>hi</p>
<p>je nach OS gibts es spezialitaeten.<br />
unter windows wuerde sich dafuer z.b. Overlapped completion port anbieten.</p>
<p>Meep Meep</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1927928</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1927928</guid><dc:creator><![CDATA[Meep Meep]]></dc:creator><pubDate>Sun, 18 Jul 2010 04:06:53 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sun, 18 Jul 2010 05:01:12 GMT]]></title><description><![CDATA[<p><a href="https://www.google.de/search?&amp;q=socket%20non%20blocking" rel="nofollow">Google: socket non blocking</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1927933</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1927933</guid><dc:creator><![CDATA[aaaaaaaaaaaaaaaaaaaaaaaaa]]></dc:creator><pubDate>Sun, 18 Jul 2010 05:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sun, 18 Jul 2010 07:22:19 GMT]]></title><description><![CDATA[<p>Ad aCTa schrieb:</p>
<blockquote>
<p>UDP nutzen.</p>
</blockquote>
<p>Geht nicht, da der spiel-client nur TCP verwendet.</p>
<p>Tyroxx, aber wie?<br />
Vieleicht meinst du etwas wie fcntl() ? War in google und ich bin gerade am herausbrobieren, aber keine Ahnung ob das was nützen wird ^^.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1927938</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1927938</guid><dc:creator><![CDATA[lk]]></dc:creator><pubDate>Sun, 18 Jul 2010 07:22:19 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sun, 18 Jul 2010 10:37:34 GMT]]></title><description><![CDATA[<p><a href="http://msdn.microsoft.com/en-us/library/ms740141%28VS.85%29.aspx" rel="nofollow">MSDN</a></p>
<pre><code class="language-cpp">int select(
  __in     int nfds,
  __inout  fd_set *readfds,
  __inout  fd_set *writefds,
  __inout  fd_set *exceptfds,
  __in     const struct timeval *timeout
);
</code></pre>
<pre><code>timeout [in]

    Maximum time for select to wait, provided in the form of a TIMEVAL structure. Set the timeout parameter to null for blocking operations.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1927994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1927994</guid><dc:creator><![CDATA[TyRoXx]]></dc:creator><pubDate>Sun, 18 Jul 2010 10:37:34 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sun, 18 Jul 2010 11:09:34 GMT]]></title><description><![CDATA[<blockquote>
<p>&gt; Geht nicht, da der spiel-client nur TCP verwendet.</p>
</blockquote>
<p>Schlechte Wahl, dafür TCP zu nehmen.</p>
<blockquote>
<p>&gt; z.b. Overlapped completion port anbieten.</p>
</blockquote>
<p>Completion Ports ohne Threads sind sinnlos. Asynchrone I/O, also Overlapped oder dev/epoll oder kqueue wären eine sinnvolle Alternative.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928020</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Sun, 18 Jul 2010 11:09:34 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sun, 18 Jul 2010 11:27:04 GMT]]></title><description><![CDATA[<blockquote>
<p>Schlechte Wahl, dafür TCP zu nehmen.</p>
</blockquote>
<p>Rede nicht so ein Quatsch, das kommt auf das Spiel an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928027</guid><dc:creator><![CDATA[dddddddddddd]]></dc:creator><pubDate>Sun, 18 Jul 2010 11:27:04 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sun, 18 Jul 2010 18:13:06 GMT]]></title><description><![CDATA[<p>dddddddddddd schrieb:</p>
<blockquote>
<blockquote>
<p>Schlechte Wahl, dafür TCP zu nehmen.</p>
</blockquote>
<p>Rede nicht so ein Quatsch, das kommt auf das Spiel an.</p>
</blockquote>
<p>Genau. Das spiel heist minecraft und da ist es zeimlich wichtig, dass alle daten ankommen. Natürlich ist da was dabei was über UDP ableufen könnte, aber das lohnt sich dann nicht mehr. <a href="http://www.minecraft.net" rel="nofollow">www.minecraft.net</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928246</guid><dc:creator><![CDATA[lk]]></dc:creator><pubDate>Sun, 18 Jul 2010 18:13:06 GMT</pubDate></item><item><title><![CDATA[Reply to Server mit nur einem Thread? on Sun, 18 Jul 2010 18:22:21 GMT]]></title><description><![CDATA[<p>Nonblocking Sockets + select()</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1928253</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1928253</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Sun, 18 Jul 2010 18:22:21 GMT</pubDate></item></channel></rss>