🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Client Socket Read Event

#4548
From: Remy Lebeau (TeamB)
Date: Fri, 21 Jan 2005 17:29
21 lines
1761 bytes
"mike" <mfbrowne@earthlink.net> wrote in message
news:41f10d05$1@newsgroups.borland.com...

> I have a current thread going on Blocking Client Sockets but I also
> have a problem with the Client Socket Read Event so I started this
> thread as well.

TClientSocket does not trigger the OnRead event in blocking mode.

> My problem is that the Read Event on a non Blocking Client Socket
> is not firing all the time, that is a data is received on the socket but
> the event does not fire.

Since you did not show your code, my guess would be that your OnRead code is
not reading all of the available data from the socket.  If you do not do
that every time, leaving some data in the socket between events, it is
possible for the event to become out of sync with the socket.


Gambit
Technical Details
Message-ID: <41f13b7d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41f10d05$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a655fe73fed6706f
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: <41f10d05$1@newsgroups.borland.com>
Subject: Re: Client Socket Read Event
Date: Fri, 21 Jan 2005 09:29:49 -0800
Lines: 23
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: 68.69.17.41
Message-ID: <41f13b7d$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1106328445 68.69.17.41 (21 Jan 2005 09:27:25 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail