🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Send a file over TCP Socket

#4242
From: Hans Galema
Date: Tue, 08 Mar 2005 19:52
29 lines
2227 bytes
lakis wrote:
> ... now one
> final question and really sorry for the trouble of continuous
> questions..

You can ask as many questions as you want. That is no trouble at all.
You only way you cause trouble is by not writing in a normal way
with a kapital letter at the start of a sentence. Is your shift key
blocked ?

 > if i use indy trivial ftp components for file transfer means i
> am using trivial ftp protocol,if i use indy ftp components for file transfer
> means i am using ftp protocol etc.

No both use the same ftp protocol. They could also connect to the
same server because the server speaks ftp.

> when i send
> file through sockets in this way what protocol am i using?(or im not using
> any protocol at all?)

You use a protocol. But it has no name. A protocol is the way a client
and a server exchange messages. If the server send you a bunch of data
then it can for instance send four bytes (an int) first with the size
of the message. A client has to read that size first. As simple as it
is: this is a protocol. You have to know that the size comes first and
act accordingly.

Hans.
Technical Details
Message-ID: <422e02e9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.mesh.ad.jp!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <422c18f6@newsgroups.borland.com> <422c79c0@newsgroups.borland.com> <422d7907@newsgroups.borland.com> <422d80f9$1@newsgroups.borland.com> <422d8633$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9d46177051bb3960
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Tue, 08 Mar 2005 20:52:29 +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: Send a file over TCP Socket
References: <422c18f6@newsgroups.borland.com> <422c79c0@newsgroups.borland.com> <422d7907@newsgroups.borland.com> <422d80f9$1@newsgroups.borland.com> <422d8633$1@newsgroups.borland.com>
In-Reply-To: <422d8633$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 129.125.201.248
Message-ID: <422e02e9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1110311657 129.125.201.248 (8 Mar 2005 11:54:17 -0800)
Lines: 29
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.mesh.ad.jp!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail