🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: i need ideas/comments with tclientsocket

#3253
From: Jonathan Benedicto
Date: Mon, 31 Oct 2005 20:40
17 lines
1876 bytes
Remy Lebeau (TeamB) wrote:
> You are removing the length from the stream.  If there are not enough
> bytes for the data, you have now lost the length for the next event.
> You should be seeking the stream backwards sizeof(int) bytes so that
> the same length can be re-read on the next loop.

I wasn't writing that code for the OnRead event. But thank you for pointing 
that out.

> The Memory property is declared as a void*.  You cannot add the
> Position to the Memory as-is.  You have to cast the Memory first,
> such as to BYTE* or char*.

Thank you for this info. The code was untested so I didn't see that error 
when compiled.

Jonathan
Technical Details
Message-ID: <4366813b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <43662baf$1@newsgroups.borland.com> <43664511@newsgroups.borland.com> <4366672a$1@newsgroups.borland.com> <436669aa$1@newsgroups.borland.com> <436672f9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5c33b8c6a9ca7fdb
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Jonathan Benedicto" <incorrect@no.server>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <43662baf$1@newsgroups.borland.com> <43664511@newsgroups.borland.com> <4366672a$1@newsgroups.borland.com> <436669aa$1@newsgroups.borland.com> <436672f9$1@newsgroups.borland.com>
Subject: Re: i need ideas/comments  with tclientsocket
Date: Mon, 31 Oct 2005 15:40:35 -0500
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 69.158.116.150
Message-ID: <4366813b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1130791227 69.158.116.150 (31 Oct 2005 12:40:27 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon06.news.prodigy.com!newscon02.news.prodigy.com!prodigy.net!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail