Article View: borland.public.cppbuilder.internet.socket
Article #1933Re: TClientSocket OnRead event issues
From: Josh Arnold
Date: Thu, 14 Sep 2006 01:04
Date: Thu, 14 Sep 2006 01:04
44 lines
2632 bytes
2632 bytes
I will post code first thing tomorrow. > Then your failing application is not actually receiving any data from the > embedded server to begin with, despite what Ethereal says. Ethereal sits > at > a very low level. Just because it says data is arriving at the TCP/IP > layer > does not necessary mean that the data is reaching the application layer. I agree, but the old example chat program works using the same TClientSocket component and nearly identical code. Very strange! "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:4508a3f3$2@newsgroups.borland.com... > > "Josh Arnold" <jdaudio02@hotmail.com> wrote in message > news:4508a026@newsgroups.borland.com... > >> 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. > > Please show your actual code. The only way you would not be receiving the > event is if the TClientSocket never received the notification in the first > place. Since non-blocking sockets use the message queue, make sure that > you > are not using anything that can discard messages before they are > processed. > >> 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. > > > > Gambit > >
Technical Details
Message-ID:
<4508aab1$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<4508a026@newsgroups.borland.com> <4508a3f3$2@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6164f1b08fcaf5c2 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 References: <4508a026@newsgroups.borland.com> <4508a3f3$2@newsgroups.borland.com> Subject: Re: TClientSocket OnRead event issues Date: Wed, 13 Sep 2006 21:04:44 -0400 Lines: 46 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: <4508aab1$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158195889 71.127.113.123 (13 Sep 2006 18:04:49 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail