<?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[mehrere TCP Client Sockets, elegante lösung?]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte in einer Anwendung 5 TCP Clients verwenden, diese sollen alle permanent verbunden sein, aber nur nach ein ander daten abrufen oder senden.<br />
Ich würde nun hingehen und 5 Clientsockets definieren also:</p>
<pre><code class="language-cpp">Socket Client1;
Socket Client2;
Socket Client3;
Socket Client4;
Socket Client5;
</code></pre>
<p>kann ich das auch irgendwie eleganter machen?</p>
<p>Mfg<br />
Paul</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/200148/mehrere-tcp-client-sockets-elegante-lösung</link><generator>RSS for Node</generator><lastBuildDate>Sun, 04 Oct 2026 09:58:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/200148.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Dec 2007 11:08:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mehrere TCP Client Sockets, elegante lösung? on Tue, 11 Dec 2007 11:08:59 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte in einer Anwendung 5 TCP Clients verwenden, diese sollen alle permanent verbunden sein, aber nur nach ein ander daten abrufen oder senden.<br />
Ich würde nun hingehen und 5 Clientsockets definieren also:</p>
<pre><code class="language-cpp">Socket Client1;
Socket Client2;
Socket Client3;
Socket Client4;
Socket Client5;
</code></pre>
<p>kann ich das auch irgendwie eleganter machen?</p>
<p>Mfg<br />
Paul</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1418655</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1418655</guid><dc:creator><![CDATA[Pauseln]]></dc:creator><pubDate>Tue, 11 Dec 2007 11:08:59 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere TCP Client Sockets, elegante lösung? on Tue, 11 Dec 2007 11:13:11 GMT]]></title><description><![CDATA[<p>Jap.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1418659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1418659</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Tue, 11 Dec 2007 11:13:11 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere TCP Client Sockets, elegante lösung? on Tue, 11 Dec 2007 11:15:24 GMT]]></title><description><![CDATA[<p>Hi Evil,</p>
<p>danke für die schnelle Antwort.</p>
<p>Würdest du mir auch veraten wie ich die Sache am elegantesten angehe?</p>
<p>Gruß<br />
Paul</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1418660</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1418660</guid><dc:creator><![CDATA[Pauseln]]></dc:creator><pubDate>Tue, 11 Dec 2007 11:15:24 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere TCP Client Sockets, elegante lösung? on Tue, 11 Dec 2007 11:55:06 GMT]]></title><description><![CDATA[<p>Du könntest die Sockets ja in eine Map o.ä. speichern.<br />
Dann wäre es auch kein Problem wenns aufeinmal 10 sind...<br />
Simon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1418685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1418685</guid><dc:creator><![CDATA[simon.gysi]]></dc:creator><pubDate>Tue, 11 Dec 2007 11:55:06 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere TCP Client Sockets, elegante lösung? on Tue, 11 Dec 2007 12:03:01 GMT]]></title><description><![CDATA[<p>das hört sich interessant an, wie sieht dann der zugriff auf einen socket aus?<br />
könntest du mir vieleicht ein beispiel, oder einen guten link/buch zu dem thema nennen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1418688</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1418688</guid><dc:creator><![CDATA[Pauseln]]></dc:creator><pubDate>Tue, 11 Dec 2007 12:03:01 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere TCP Client Sockets, elegante lösung? on Tue, 11 Dec 2007 13:30:44 GMT]]></title><description><![CDATA[<p>Also, zunächst kannst du das mit einem simplen Array realisieren:</p>
<pre><code class="language-cpp">Socket Sockets[5];
//Zugriff: Sockets[0], Sockets[1], etc.
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1418737</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1418737</guid><dc:creator><![CDATA[Nanyuki]]></dc:creator><pubDate>Tue, 11 Dec 2007 13:30:44 GMT</pubDate></item><item><title><![CDATA[Reply to mehrere TCP Client Sockets, elegante lösung? on Tue, 11 Dec 2007 15:33:59 GMT]]></title><description><![CDATA[<p>Danke Nanyuki, so habe ichs gelöst bekommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1418847</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1418847</guid><dc:creator><![CDATA[Pauseln]]></dc:creator><pubDate>Tue, 11 Dec 2007 15:33:59 GMT</pubDate></item></channel></rss>