<?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[Port]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Programm geschrieben, das Ports von meinem PC scannen kann, aber das scannen dauert sehr lange.</p>
<p>Desshalb suche ich nach einer schnelleren Möglichkeit.</p>
<p>Gibt es eine schnellere Möglichkeit als diese? :</p>
<pre><code>SOCKET sock = INVALID_SOCKET; 

struct sockaddr_in server; 

server.sin_addr.s_addr = &quot;127.0.0.1&quot;; 
server.sin_family = AF_INET; 

WSAInit(); 

server.sin_port = htons(port); 

if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET)
	MessageBox(&quot;Fehler beim Erstellen des Socket!&quot;,&quot;Fehler&quot;,MB_OK|MB_ICONERROR);

contr = connect(sock, (sockaddr *) &amp;server ,sizeof(server)); 

if (contr &lt; 0 &amp;&amp; show_closed==TRUE) 
	//Ausgabe wenn Port closed
else if (contr &gt;= 0 &amp;&amp; show_open==TRUE) 
	//Ausgabe wenn Port open

closesocket(sock); 

WSACleanup();
</code></pre>
<p>Wäre für jede Antwort dankbar.</p>
<p>ITA</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80334/port</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 06:12:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80334.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Jul 2004 11:32:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Port on Tue, 20 Jul 2004 11:32:54 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Programm geschrieben, das Ports von meinem PC scannen kann, aber das scannen dauert sehr lange.</p>
<p>Desshalb suche ich nach einer schnelleren Möglichkeit.</p>
<p>Gibt es eine schnellere Möglichkeit als diese? :</p>
<pre><code>SOCKET sock = INVALID_SOCKET; 

struct sockaddr_in server; 

server.sin_addr.s_addr = &quot;127.0.0.1&quot;; 
server.sin_family = AF_INET; 

WSAInit(); 

server.sin_port = htons(port); 

if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET)
	MessageBox(&quot;Fehler beim Erstellen des Socket!&quot;,&quot;Fehler&quot;,MB_OK|MB_ICONERROR);

contr = connect(sock, (sockaddr *) &amp;server ,sizeof(server)); 

if (contr &lt; 0 &amp;&amp; show_closed==TRUE) 
	//Ausgabe wenn Port closed
else if (contr &gt;= 0 &amp;&amp; show_open==TRUE) 
	//Ausgabe wenn Port open

closesocket(sock); 

WSACleanup();
</code></pre>
<p>Wäre für jede Antwort dankbar.</p>
<p>ITA</p>
]]></description><link>https://www.c-plusplus.net/forum/post/564362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/564362</guid><dc:creator><![CDATA[Gastuser]]></dc:creator><pubDate>Tue, 20 Jul 2004 11:32:54 GMT</pubDate></item><item><title><![CDATA[Reply to Port on Tue, 20 Jul 2004 11:48:04 GMT]]></title><description><![CDATA[<p>Mit Langsamm meine ich das mein Prog für die kontrolle von einem Port ca. 1'ne Sekunde braucht.</p>
<p>Andere Portscan Programme scannen in einer Sekunde hunderte Ports durch.<br />
Es muss doch eine möglichkeit geben das sneller zu machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/564380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/564380</guid><dc:creator><![CDATA[Gastuser]]></dc:creator><pubDate>Tue, 20 Jul 2004 11:48:04 GMT</pubDate></item><item><title><![CDATA[Reply to Port on Tue, 20 Jul 2004 12:14:54 GMT]]></title><description><![CDATA[<p>Servus,</p>
<p>ich finde das schon schnell <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 kenne jetzt, auf anhib, kein Programm das schneller die Ports durchscannt. Aber gucke mal hier:</p>
<p><a href="http://www.codeproject.com/internet/NagTPortScanner.asp" rel="nofollow">http://www.codeproject.com/internet/NagTPortScanner.asp</a></p>
<p>Habe es aber selber nicht nicht ausprobiert. Weiss auch nicht was er dort macht aber da steht &quot;Fast&quot; dabei <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="😃"
    /> . Vielleicht hilft es dir ja..</p>
<p>*winke*<br />
Hellsgore</p>
]]></description><link>https://www.c-plusplus.net/forum/post/564402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/564402</guid><dc:creator><![CDATA[Hellsgore]]></dc:creator><pubDate>Tue, 20 Jul 2004 12:14:54 GMT</pubDate></item></channel></rss>