🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: please help me..socket file transfer

#4645
From: Vladimir Stefanovic
Date: Tue, 11 Jan 2005 20:19
27 lines
1738 bytes
Remy, I have a (global) question about princips
of sending and receiving data with sockets, ie
TCP/IP.

From the samples I have seen so far in this NG, I
got to the conclusion that there are two approachs
of sending data in picies to the server.

1) Make the piece of data by myself, for example
buffer of 5000 bytes, and always try to send max that
buffer, etc, etc.

2) Try to send all the buffer, and via the return value
we see what piece (how many bytes) is actually sent,
so we can track where we are supposed to continue.

Am I right, or I mixed something? I suppose that the
second approach needs (theoretically)  less data to
be actually sent because it sends always the maximum
that can be sent at that moment.





Best regards,
Vladimir Stefanovic 
Technical Details
Message-ID: <41e434ae$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41e3b756@newsgroups.borland.com> <41e41d6a$1@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: "Vladimir Stefanovic" <antivari@po.sbb.co.yu>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41e3b756@newsgroups.borland.com> <41e41d6a$1@newsgroups.borland.com>
Subject: Re: please help me..socket file transfer
Date: Tue, 11 Jan 2005 21:19:02 +0100
Lines: 29
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 82.117.212.65
Message-ID: <41e434ae$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1105474734 82.117.212.65 (11 Jan 2005 12:18:54 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail