Article View: borland.public.cppbuilder.internet.socket
Article #3263Re: i need ideas/comments with tclientsocket
From: Remy Lebeau (TeamB)
Date: Tue, 01 Nov 2005 06:36
Date: Tue, 01 Nov 2005 06:36
24 lines
1708 bytes
1708 bytes
"Alfred" <alf@no.spam.not.valid.email> wrote in message
news:4366deb1$1@newsgroups.borland.com...
> I have only copied all you code with no modifications..
Change these lines:
LPBYTE *BufPtr = (LPBYTE) Buffer->Memory;
if( (Buffer->Position + Len) >= Buffer->Size )
::MoveMemory(BufPtr, &BufPtr[Position], NewSize);
To these instead, respectively:
LPBYTE BufPtr = (LPBYTE) Buffer->Memory;
if( (Buffer->Size - Buffer->Position) < Len )
::MoveMemory(BufPtr, &BufPtr[Buffer->Position], NewSize);
Gambit
Technical Details
Message-ID:
<43670f39@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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-mailReferences:
<43662baf$1@newsgroups.borland.com> <43667112$1@newsgroups.borland.com> <4366ccd3$1@newsgroups.borland.com> <4366d53d$1@newsgroups.borland.com> <4366deb1$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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <43662baf$1@newsgroups.borland.com> <43667112$1@newsgroups.borland.com> <4366ccd3$1@newsgroups.borland.com> <4366d53d$1@newsgroups.borland.com> <4366deb1$1@newsgroups.borland.com> Subject: Re: i need ideas/comments with tclientsocket Date: Mon, 31 Oct 2005 22:36:59 -0800 Lines: 26 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: 68.69.17.41 Message-ID: <43670f39@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1130827577 68.69.17.41 (31 Oct 2005 22:46:17 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!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