<?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[TCP Socket Programmierung]]></title><description><![CDATA[<p>Hallo:</p>
<p>Eine grundlegende Frage zur Socketprogrammierung: Manche würden es auch als NewbFrage bezeichnen aber das ist jetzt ja egal!</p>
<p>Also ich hab mir schon ein Socket Tutorial reingezogen, das ganz einfach eine Message zwischen Server und Client austauscht. das funktioniert ja alles wunderbar.</p>
<p>Ich bein echter Anfänger in C++ darum kommt jetzt meine Frage:</p>
<p>Wie mach Ich das, dass ich auf meine TCP Ports horche (listen) aber nebenbei trotzdem das Programm an anderen Stellen bedienen kann???</p>
<p>Anders ausgedrückt: ich habe Funktionen die ausgeführt werden sollen wenn eine TCP Message ankommt, aber meine Applikation soll ja nicht nur die gnaze Zeit auf die TCP Ports horchen sondern auch was anderes tun???</p>
<p>Wie mach ich das?</p>
<p>mfG Walsi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182199/tcp-socket-programmierung</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 16:40:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182199.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 22 May 2007 13:58:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to TCP Socket Programmierung on Tue, 22 May 2007 13:58:26 GMT]]></title><description><![CDATA[<p>Hallo:</p>
<p>Eine grundlegende Frage zur Socketprogrammierung: Manche würden es auch als NewbFrage bezeichnen aber das ist jetzt ja egal!</p>
<p>Also ich hab mir schon ein Socket Tutorial reingezogen, das ganz einfach eine Message zwischen Server und Client austauscht. das funktioniert ja alles wunderbar.</p>
<p>Ich bein echter Anfänger in C++ darum kommt jetzt meine Frage:</p>
<p>Wie mach Ich das, dass ich auf meine TCP Ports horche (listen) aber nebenbei trotzdem das Programm an anderen Stellen bedienen kann???</p>
<p>Anders ausgedrückt: ich habe Funktionen die ausgeführt werden sollen wenn eine TCP Message ankommt, aber meine Applikation soll ja nicht nur die gnaze Zeit auf die TCP Ports horchen sondern auch was anderes tun???</p>
<p>Wie mach ich das?</p>
<p>mfG Walsi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289951</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289951</guid><dc:creator><![CDATA[Walsi]]></dc:creator><pubDate>Tue, 22 May 2007 13:58:26 GMT</pubDate></item><item><title><![CDATA[Reply to TCP Socket Programmierung on Tue, 22 May 2007 14:13:15 GMT]]></title><description><![CDATA[<p>mit select oder threads</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289964</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289964</guid><dc:creator><![CDATA[Fencer]]></dc:creator><pubDate>Tue, 22 May 2007 14:13:15 GMT</pubDate></item><item><title><![CDATA[Reply to TCP Socket Programmierung on Tue, 22 May 2007 14:15:35 GMT]]></title><description><![CDATA[<p>Threads: das sagt mir zumindest etwas so weit, dass es sie geht; hab ich schon mal gehört.</p>
<p>Abes was ist mit Select gemeint, das hab ich noch nie gehört.</p>
<p>Welche dieser beiden Lösungen gestaltet sich einfacher???</p>
<p>mfG Michael</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289966</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289966</guid><dc:creator><![CDATA[Walsi]]></dc:creator><pubDate>Tue, 22 May 2007 14:15:35 GMT</pubDate></item><item><title><![CDATA[Reply to TCP Socket Programmierung on Tue, 22 May 2007 14:21:02 GMT]]></title><description><![CDATA[<p>Stichwort: Threads</p>
<p>P.S:<br />
select ist ein Socket-Befehl, mit dem man mehrere Sockets überwachen (horchen) kann, siehe z.B. <a href="http://www.pc-adviser.de/socket_programmierung.html" rel="nofollow">http://www.pc-adviser.de/socket_programmierung.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289967</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289967</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Tue, 22 May 2007 14:21:02 GMT</pubDate></item><item><title><![CDATA[Reply to TCP Socket Programmierung on Tue, 22 May 2007 14:20:11 GMT]]></title><description><![CDATA[<p>siehe msdn <a href="http://msdn2.microsoft.com/en-us/library/ms740141.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms740141.aspx</a></p>
<p>select sollte das einfachere sein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289970</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289970</guid><dc:creator><![CDATA[Fencer]]></dc:creator><pubDate>Tue, 22 May 2007 14:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to TCP Socket Programmierung on Tue, 22 May 2007 14:21:42 GMT]]></title><description><![CDATA[<p>Als Anfänger würde ich nicht mit sowas anfangen. Hab ich früher auch gemacht und es kamm nur Gefrickel bei heraus. Such dir am besten eine Library für raus die das sowieso asynchron macht, z.B. boost::asio. Je nachdem was du machen willst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1289974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1289974</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Tue, 22 May 2007 14:21:42 GMT</pubDate></item><item><title><![CDATA[Reply to TCP Socket Programmierung on Wed, 23 May 2007 06:24:05 GMT]]></title><description><![CDATA[<p>Guten Morgen!</p>
<p>So ich hab mir jetzt meine Problematik mit der Socket Programmierung weiter betrachtet und bin zu dem Schluß gekommen, dass ich es mit Threads machen werde.</p>
<p>So schwierig erscheint es mir nicht, ich habe auch eine Beispiel Applikation über die ich viel in Erfahrung bringen kann.</p>
<p>Jetzt hab ich noch eine spezielle Frage: Muss ich bei der Threadprogrammierung unter Linux auf irgendetwas besonderes aufpassen??? Das Beispiel, dass ich mir ansehe ist mit VS2003 unter Windows programmiert worden. Nun denke ich mir vielleicht, dass gerade die Threadspezifische Include Datei (&lt;process.h&gt;) unter Linux anders heißt?! Oder gibt es andere Besonderheiten?</p>
<p>Oder verhält es sich in Linux so wie unter Windows komplett gleich?</p>
<p>EDIT: Ist vielleicht das was ich benötige bzw. das wovon ich spreche &lt;pthread.h&gt;??</p>
<p>mfG Walsi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1290308</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1290308</guid><dc:creator><![CDATA[Walsi]]></dc:creator><pubDate>Wed, 23 May 2007 06:24:05 GMT</pubDate></item><item><title><![CDATA[Reply to TCP Socket Programmierung on Wed, 23 May 2007 11:32:29 GMT]]></title><description><![CDATA[<p>Das kommt darauf an, welches Beispiel du da jetzt hattest. Generell wird es schon anders sein, wenn du OS-spezifische APIs verwendest.<br />
Du könntest dir auch mal die Thread-API von boost angucken, die ist plattformunabhängig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1290573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1290573</guid><dc:creator><![CDATA[Hazzel]]></dc:creator><pubDate>Wed, 23 May 2007 11:32:29 GMT</pubDate></item><item><title><![CDATA[Reply to TCP Socket Programmierung on Wed, 23 May 2007 12:11:24 GMT]]></title><description><![CDATA[<p>Danke für die Antwort, hab mich inzwischen dafür entschieden, dass ich es mit Qt4 lösen werde.</p>
<p>mfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1290622</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1290622</guid><dc:creator><![CDATA[Walsi]]></dc:creator><pubDate>Wed, 23 May 2007 12:11:24 GMT</pubDate></item><item><title><![CDATA[Reply to TCP Socket Programmierung on Wed, 23 May 2007 15:39:28 GMT]]></title><description><![CDATA[<p>Einige nette Details zur Socket Programmierung liefern auch <a href="http://www.zotteljedi.de/doc/socket-tipps/index.html" rel="nofollow">Zotteljedis Sockettipps</a></p>
<p>mfg Pumu</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1290837</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1290837</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Wed, 23 May 2007 15:39:28 GMT</pubDate></item></channel></rss>