<?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[Ampel]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte mir ein kleines Programm schreiben, das mir auf dem Bildschirm eine Ampel zeigt und immer sagt wann ich eine Netzwerkverbindung habe und wann nicht.</p>
<p>rot = keine Verbindung<br />
gelb = ungesicherte Internetverbindung<br />
grün = gesicherte Verbindung ins Firmennetzwerk</p>
<p>Ich dachte mir ich mach das mit nem Ping, also im ersten Durchlauf n Ping an nen internen Server, der 2. an z.B. Google und wenn beides nich klappt geht die Ampel auf rot.</p>
<p>Hat jemand nen Vorschlag wie ich als Anfänger das lösen könnte? Ich dachte an ne if-Anweisung oder ne do/while Schleife.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/194803/ampel</link><generator>RSS for Node</generator><lastBuildDate>Tue, 29 Sep 2026 16:37:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/194803.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Oct 2007 06:22:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 06:22:15 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte mir ein kleines Programm schreiben, das mir auf dem Bildschirm eine Ampel zeigt und immer sagt wann ich eine Netzwerkverbindung habe und wann nicht.</p>
<p>rot = keine Verbindung<br />
gelb = ungesicherte Internetverbindung<br />
grün = gesicherte Verbindung ins Firmennetzwerk</p>
<p>Ich dachte mir ich mach das mit nem Ping, also im ersten Durchlauf n Ping an nen internen Server, der 2. an z.B. Google und wenn beides nich klappt geht die Ampel auf rot.</p>
<p>Hat jemand nen Vorschlag wie ich als Anfänger das lösen könnte? Ich dachte an ne if-Anweisung oder ne do/while Schleife.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382533</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382533</guid><dc:creator><![CDATA[Chris236]]></dc:creator><pubDate>Thu, 11 Oct 2007 06:22:15 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 06:25:20 GMT]]></title><description><![CDATA[<p>Soll die Ampel grafisch dargestellt werden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382534</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382534</guid><dc:creator><![CDATA[agentuhr]]></dc:creator><pubDate>Thu, 11 Oct 2007 06:25:20 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 06:29:25 GMT]]></title><description><![CDATA[<p>ja</p>
<p>wobei grafisch erstmal nich so wichtig wäre das könnt ich dann auch noch selber machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382536</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382536</guid><dc:creator><![CDATA[Chris236]]></dc:creator><pubDate>Thu, 11 Oct 2007 06:29:25 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 06:29:52 GMT]]></title><description><![CDATA[<p>Dann musst du erst mal ne API/Framework für dein OS raussuchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382538</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382538</guid><dc:creator><![CDATA[agentuhr]]></dc:creator><pubDate>Thu, 11 Oct 2007 06:29:52 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 06:49:20 GMT]]></title><description><![CDATA[<p>du meinst n gui?</p>
<p>ich dachte ich mach das einfach im borland builder...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382545</guid><dc:creator><![CDATA[Chris236]]></dc:creator><pubDate>Thu, 11 Oct 2007 06:49:20 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 07:44:25 GMT]]></title><description><![CDATA[<p>wenns nur um die abfrage geht, dann machst du halt eine schleife mit einem sleep für ein paar sekunden und prüfst dann wieder. vlt gibts von windows auch bessere funktionen zum verbindungstest, als ping.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382574</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382574</guid><dc:creator><![CDATA[agentuhr]]></dc:creator><pubDate>Thu, 11 Oct 2007 07:44:25 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 08:15:41 GMT]]></title><description><![CDATA[<p>Ja genau da liegt mein Problem, ich als Anfänger kann das nämlich noch net so richtig programmieren. Kannst du mir da helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382604</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382604</guid><dc:creator><![CDATA[Chris236]]></dc:creator><pubDate>Thu, 11 Oct 2007 08:15:41 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 08:19:30 GMT]]></title><description><![CDATA[<p>Woran genau hapert es denn? Weißt du, wie du deinen &quot;Ping an nen internen Server&quot; durchführen kannst? Kannst du mit Schleifen umgehen?</p>
<p>(wenn du nicht willst, daß die regelmäßige Statusabfrage deinen normalen Code aufhält, solltest du sie in einen eigenen Thread auslagern)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382607</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 11 Oct 2007 08:19:30 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 08:23:25 GMT]]></title><description><![CDATA[<p>InternetGetConnectionStatus glaube ich o.ä</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382611</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Thu, 11 Oct 2007 08:23:25 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 08:40:04 GMT]]></title><description><![CDATA[<p>CStoll schrieb:</p>
<blockquote>
<p>Woran genau hapert es denn? Weißt du, wie du deinen &quot;Ping an nen internen Server&quot; durchführen kannst? Kannst du mit Schleifen umgehen?</p>
<p>(wenn du nicht willst, daß die regelmäßige Statusabfrage deinen normalen Code aufhält, solltest du sie in einen eigenen Thread auslagern)</p>
</blockquote>
<p>Mit Schleifen hab ich schon n bissl was gemacht ja, aber hab da net mehr als Grundkenntnisse.<br />
Und wie ich meinen Ping krieg is ne gute Frage. <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/1382624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382624</guid><dc:creator><![CDATA[Chris236]]></dc:creator><pubDate>Thu, 11 Oct 2007 08:40:04 GMT</pubDate></item><item><title><![CDATA[Reply to Ampel on Thu, 11 Oct 2007 11:48:52 GMT]]></title><description><![CDATA[<p>Jemand ne Idee für mich, wie vielleicht so ein Quellcode aussehen könnte?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382777</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382777</guid><dc:creator><![CDATA[Chris236]]></dc:creator><pubDate>Thu, 11 Oct 2007 11:48:52 GMT</pubDate></item></channel></rss>