Article View: borland.public.cppbuilder.internet.socket
Article #1931TClientSocket OnRead event issues
From: Josh Arnold
Date: Thu, 14 Sep 2006 00:17
Date: Thu, 14 Sep 2006 00:17
25 lines
2013 bytes
2013 bytes
Hello, I have an application that acts as a client to a device running an embedded TCP/IP stack. The embedded device is the server and I'm trying to receive messages from the server. I'm using BDS 2006 but not using the socket components from the tool pallete, instead I am using the TClientSocket component. I open the socket and assign the OnRead event handler at run time. The server device properly receives any messages I send (I'm just sending text) and then replies back with the necessary data (again just text). I can see the response when capturing with Ethereal. But the OnRead event does not fire in my client app therefore my application never sees any of the responses from the server. Here is the bizarre part. I can run the Internet Chat example program from C++ Builder 5 on another machine and my app talks to it and receives from it just fine. AND I can use the Chat example program to talk to the embedded server device and it WILL see the responses from the server. Both applications use the same TClientSocket component. Any ideas anyone????? I am quite stumped thanks -Josh
Technical Details
Message-ID:
<4508a026@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6164f1b08fcaf5c2,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Reply-To: "Josh Arnold" <jdaudio02@hotmail.com> From: "Josh Arnold" <jdaudio02@hotmail.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: TClientSocket OnRead event issues Date: Wed, 13 Sep 2006 20:17:32 -0400 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 NNTP-Posting-Host: 71.127.113.123 Message-ID: <4508a026@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158193190 71.127.113.123 (13 Sep 2006 17:19:50 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail