Article View: borland.public.cppbuilder.internet.socket
Article #3130Re: i need ideas/comments with tclientsocket
From: Alfred
Date: Tue, 01 Nov 2005 22:27
Date: Tue, 01 Nov 2005 22:27
19 lines
1697 bytes
1697 bytes
>To these instead, respectively: > > LPBYTE BufPtr = (LPBYTE) Buffer->Memory; > > if( (Buffer->Size - Buffer->Position) < Len ) > > ::MoveMemory(BufPtr, &BufPtr[Buffer->Position], NewSize); It is perfect right now. Thank you very much Gambit, Hans and Jonathan for your help, I have learned a lot of think with your post in those days. one more think : ProcessPacket(Socket, &BufPtr[Buffer->Position], Len); it give me a warning : W8072 Suspicious pointer arithmetic How can I fix it to remove those warning ? Thank you again Alfred
Technical Details
Message-ID:
<4367f9ea$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.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> <43670f39@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: "Alfred" <alf@no.spam.not.valid.email> Sender: "Alfred" <alf@no.spam.not.valid.email> Reply-To: "Alfred" <alf@no.spam.not.valid.email> Subject: Re: i need ideas/comments with tclientsocket Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 82.52.140.211 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> <43670f39@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <4367f9ea$1@newsgroups.borland.com> Date: 1 Nov 2005 15:27:38 -0700 X-Trace: newsgroups.borland.com 1130887658 207.105.83.66 (1 Nov 2005 15:27:38 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.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