<?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 sockets öffnen mit CAsyncSocket abgeleitete klasse]]></title><description><![CDATA[<p>hi,</p>
<p>ich habe mir ne klass e von CAsyncSocket abgeleitet. damit will ich jetzt eine verbindung zu einer anderen anwendung aufbauen. das hat bisher immer geklappt, und das habe ich so gemacht:<br />
CAbgeleiteteKlasse m_sConnectedSocket;</p>
<pre><code class="language-cpp">m_sConnectSocket.SetParent(this);

int iPort = 500;                    // port
m_sConnectSocket.Create();
m_sConnectSocket.Connect(&quot;Server Adresse&quot;, iPort);
</code></pre>
<p>hat also immer geklappt.<br />
jetzt möchte ich einen neuen socket öffnen und wollte es so machen:</p>
<pre><code class="language-cpp">m_sConnectSocket2.SetParent(this);

int iPort = 501;                    // port
m_sConnectSocket2.Create();
m_sConnectSocket2.Connect(&quot;Server Adresse&quot;, iPort);
</code></pre>
<p>das programm stürtzt an der stelle &quot;m_sConnectSocket2.Connect(&quot;Server Adresse&quot;, iPort);&quot; ab !?</p>
<p>kann mir jemand helfen ??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/69569/mehrere-sockets-öffnen-mit-casyncsocket-abgeleitete-klasse</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 22:24:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/69569.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 29 Mar 2004 14:54:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to mehrere sockets öffnen mit CAsyncSocket abgeleitete klasse on Mon, 29 Mar 2004 14:54:10 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich habe mir ne klass e von CAsyncSocket abgeleitet. damit will ich jetzt eine verbindung zu einer anderen anwendung aufbauen. das hat bisher immer geklappt, und das habe ich so gemacht:<br />
CAbgeleiteteKlasse m_sConnectedSocket;</p>
<pre><code class="language-cpp">m_sConnectSocket.SetParent(this);

int iPort = 500;                    // port
m_sConnectSocket.Create();
m_sConnectSocket.Connect(&quot;Server Adresse&quot;, iPort);
</code></pre>
<p>hat also immer geklappt.<br />
jetzt möchte ich einen neuen socket öffnen und wollte es so machen:</p>
<pre><code class="language-cpp">m_sConnectSocket2.SetParent(this);

int iPort = 501;                    // port
m_sConnectSocket2.Create();
m_sConnectSocket2.Connect(&quot;Server Adresse&quot;, iPort);
</code></pre>
<p>das programm stürtzt an der stelle &quot;m_sConnectSocket2.Connect(&quot;Server Adresse&quot;, iPort);&quot; ab !?</p>
<p>kann mir jemand helfen ??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/491025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/491025</guid><dc:creator><![CDATA[Red Skall]]></dc:creator><pubDate>Mon, 29 Mar 2004 14:54:10 GMT</pubDate></item></channel></rss>