<?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[ClientProblem]]></title><description><![CDATA[<p>Hi,</p>
<p>wollte eine kleine Client Anwendung schreiben, doch leider kann ich weder lesen noch schreiben (in den Socket).</p>
<pre><code>void __fastcall TForm1::TcpClientReceive(TObject *Sender, PChar Buf,
      int &amp;DataLen)
{
	//TcpClient-&gt;ReceiveBuf((void*)&amp;test, 50000, NULL);
	prv_AddToProtocol(&quot;&lt;- &quot; + (AnsiString)Buf);
	//prv_AddToProtocol(&quot;srv: &quot; + test);
}
</code></pre>
<pre><code>void __fastcall TForm1::EditSendKeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
	if(Key == VK_RETURN)
	{
		int iReturn;
		iReturn = TcpClient-&gt;SendBuf((void*)EditSend-&gt;Text.c_str(), EditSend-&gt;Text.Length(), NULL);
		if(iReturn == -1)
		{
			prv_AddToProtocol(&quot;Error while sending: &quot; + IntToStr(iReturn));
			return;
        }
		EditSend-&gt;Text = &quot;&quot;;
    }
}
</code></pre>
<p>das komische ist, er springt nicht in das ReceiveEvent, in das Sende-Event aber schon.<br />
Connected ist er wohl, da ich den Socket auf Active=true setzen kann.<br />
Ps.: ich verwende BDS2006 (die Hilfe ist total fuern ***) - weiss wer was die mit Flags meinen beim senden/empfangen? Ist das wie unter Linux (c) mit zb. NOWAIT etc.?</p>
<p>lg</p>
<p>oli</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/131000/clientproblem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Jul 2026 12:41:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/131000.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Dec 2005 21:03:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ClientProblem on Thu, 29 Dec 2005 21:03:38 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>wollte eine kleine Client Anwendung schreiben, doch leider kann ich weder lesen noch schreiben (in den Socket).</p>
<pre><code>void __fastcall TForm1::TcpClientReceive(TObject *Sender, PChar Buf,
      int &amp;DataLen)
{
	//TcpClient-&gt;ReceiveBuf((void*)&amp;test, 50000, NULL);
	prv_AddToProtocol(&quot;&lt;- &quot; + (AnsiString)Buf);
	//prv_AddToProtocol(&quot;srv: &quot; + test);
}
</code></pre>
<pre><code>void __fastcall TForm1::EditSendKeyDown(TObject *Sender, WORD &amp;Key,
      TShiftState Shift)
{
	if(Key == VK_RETURN)
	{
		int iReturn;
		iReturn = TcpClient-&gt;SendBuf((void*)EditSend-&gt;Text.c_str(), EditSend-&gt;Text.Length(), NULL);
		if(iReturn == -1)
		{
			prv_AddToProtocol(&quot;Error while sending: &quot; + IntToStr(iReturn));
			return;
        }
		EditSend-&gt;Text = &quot;&quot;;
    }
}
</code></pre>
<p>das komische ist, er springt nicht in das ReceiveEvent, in das Sende-Event aber schon.<br />
Connected ist er wohl, da ich den Socket auf Active=true setzen kann.<br />
Ps.: ich verwende BDS2006 (die Hilfe ist total fuern ***) - weiss wer was die mit Flags meinen beim senden/empfangen? Ist das wie unter Linux (c) mit zb. NOWAIT etc.?</p>
<p>lg</p>
<p>oli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/952422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/952422</guid><dc:creator><![CDATA[Oli21]]></dc:creator><pubDate>Thu, 29 Dec 2005 21:03:38 GMT</pubDate></item><item><title><![CDATA[Reply to ClientProblem on Fri, 30 Dec 2005 07:05:26 GMT]]></title><description><![CDATA[<p>NonBlocking Mode ausgewählt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/952532</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/952532</guid><dc:creator><![CDATA[Christian211]]></dc:creator><pubDate>Fri, 30 Dec 2005 07:05:26 GMT</pubDate></item><item><title><![CDATA[Reply to ClientProblem on Fri, 30 Dec 2005 13:19:24 GMT]]></title><description><![CDATA[<p>jop - habs aufgegeben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":/"
      alt="😕"
    /><br />
werde jetzt die indy komponente (TidIrc) verwenden und mich damit ein bisschen austoben - da gibts wenigstens bisschen doku zu.</p>
<p>lg</p>
<p>oli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/952717</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/952717</guid><dc:creator><![CDATA[Oli21]]></dc:creator><pubDate>Fri, 30 Dec 2005 13:19:24 GMT</pubDate></item></channel></rss>