🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1932

Re: TClientSocket OnRead event issues

#1932
From: Remy Lebeau (TeamB)
Date: Thu, 14 Sep 2006 00:32
26 lines
2163 bytes
"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.

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.


Gambit
Technical Details
Message-ID: <4508a3f3$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.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
References: <4508a026@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
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4508a026@newsgroups.borland.com>
Subject: Re: TClientSocket OnRead event issues
Date: Wed, 13 Sep 2006 17:32:06 -0700
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 70.40.40.167
Message-ID: <4508a3f3$2@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1158194163 70.40.40.167 (13 Sep 2006 17:36:03 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.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