🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: TWinSocketStream Read in BYTE buffer

#2960
From: Hans Galema
Date: Thu, 29 Dec 2005 21:09
19 lines
2022 bytes
newsgroups.borland.com wrote:

Please can you change that name to a more appropriate one ?

>                                 DataStream->Write(rbuf, bufsize);
> <----- What I added
>                                 DataStream->SaveToFile( "maurice.ini" );
> <----- What I added
> 
> The contents of 'maurice.ini', is garbled.  It looks like this:
>          �� �|�w       �X|8�  o� U�w(%�w����

Well if that was what the sender sent then it is ok. You did
not tell what you expected.

And you checked it late. Before Write(rbuf), did you check the
contents of rbuf ? For instance with a ShowMessage ( rbuf ); ?

Hans.
Technical Details
Message-ID: <43b450a4@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!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: <43ac3d34$1@newsgroups.borland.com> <43ac6028$1@newsgroups.borland.com> <43acc4c5$1@newsgroups.borland.com> <43ae5b51$1@newsgroups.borland.com> <43aeebe1$1@newsgroups.borland.com> <43aef70e$1@newsgroups.borland.com> <43af06d7$1@newsgroups.borland.com> <43b252fa$1@newsgroups.borland.com> <43b43a5a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,74cdc31c66b3abd9
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,CP1252
Date: Thu, 29 Dec 2005 22:09:36 +0100
From: Hans Galema <notused@notused.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: TWinSocketStream Read in BYTE buffer
References: <43ac3d34$1@newsgroups.borland.com> <43ac6028$1@newsgroups.borland.com> <43acc4c5$1@newsgroups.borland.com> <43ae5b51$1@newsgroups.borland.com> <43aeebe1$1@newsgroups.borland.com> <43aef70e$1@newsgroups.borland.com> <43af06d7$1@newsgroups.borland.com> <43b252fa$1@newsgroups.borland.com> <43b43a5a$1@newsgroups.borland.com>
In-Reply-To: <43b43a5a$1@newsgroups.borland.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 145.98.201.248
Message-ID: <43b450a4@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1135890596 145.98.201.248 (29 Dec 2005 13:09:56 -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!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