🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: please help me..socket file transfer

#4644
From: Remy Lebeau (TeamB)
Date: Tue, 11 Jan 2005 18:45
26 lines
1839 bytes
"Hans Galema" <notused@notused.nl> wrote in message
news:41e3d1df@newsgroups.borland.com...

> > ServerSocket1->Socket->Connections[0]->SendStream(file);
>
> Check the returnvalue of SendStream(). It is a bool. Only
> if true all went well on the sending side.

That is not entirely true.  SendStream() can return true even if the whole
stream was not sent.  As soon as the socket blocks, SendStream() exits
returning true.  You would have to check the stream's Position to know
whether the full stream was sent or not, and if not then send the remaining
stream data again.  SendStream() always begins as the stream's current
Position.

> What is -the type of- Pointer ?

Pointer is a typedef for void*.

> What does GetMem() ?

It is a VCL function for allocating a block of memory.


Gambit
Technical Details
Message-ID: <41e41e3f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41e3b756@newsgroups.borland.com> <41e3d1df@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,399582d307fda7fe
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: <41e3b756@newsgroups.borland.com> <41e3d1df@newsgroups.borland.com>
Subject: Re: please help me..socket file transfer
Date: Tue, 11 Jan 2005 10:45:00 -0800
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <41e41e3f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105468991 68.69.17.41 (11 Jan 2005 10:43:11 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!transit.nntp.hccnet.nl!transit1.nntp.hccnet.nl!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail