🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: i need ideas/comments with tclientsocket

#3261
From: Alfred
Date: Tue, 01 Nov 2005 02:19
14 lines
1686 bytes
yes you right.
I am making a lot of confusion while programming.
I have one last error : when I get 2 half package , for example :
12345 and 67890 i have problems with the second package. the code :
void __fastcall TForm1::ProcessPacket(TCustomWinSocket *Socket, void *Data, int DataLength)
{
        // process Data as needed...
        Memo->Lines->Add(AnsiString((char*)Data, DataLength));
} 
write sometimes the first 5 chars correctly and the last 5 in not ascii code and sometimes all 10 chars in not ascii code.. why that ? I have only copied all you code with no modifications..

Thank you very much for your help
Alfred
Technical Details
Message-ID: <4366deb1$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!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> <43667112$1@newsgroups.borland.com> <4366ccd3$1@newsgroups.borland.com> <4366d53d$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: "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.136.128     
References: <43662baf$1@newsgroups.borland.com> <43667112$1@newsgroups.borland.com> <4366ccd3$1@newsgroups.borland.com> <4366d53d$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4366deb1$1@newsgroups.borland.com>
Date: 31 Oct 2005 19:19:13 -0700
X-Trace: newsgroups.borland.com 1130815153 207.105.83.66 (31 Oct 2005 19:19:13 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.hal-mli.net!feeder1.hal-mli.net!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail