🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Send a file from one PC to another...

#4986
From: Vladimir Stefanovic
Date: Mon, 08 Nov 2004 20:56
27 lines
1792 bytes
> Anybody have any example code on how to send
> a file from one PC to another???

You can use TClientSocket & TServerSocket for that.
There were many examples in this NG exactly how to send
data from one PC to other. Also search tamaracka.com
for the TClientSocket & TServerSocket.

> Main problem is that when using the NMStrm
> stuff, I cannot prevent exceptions when the host is
> offline and cleanly use my own error handling???

I never used that but I can hardly imagine that exist
the regular component which exceptions cannot be
handled.

TClientSocket & TServerSocket can handle
exceptions quite well.

For start look at client types ctBlocking/ctNonBlocking
and server types stNonBlocking/stThreadBlocking, because
it is related to the sending techniques.



Best regards,
Vladimir Stefanovic
Technical Details
Message-ID: <418fdd86@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <418fd265$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,47a7a25afcaae005
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Vladimir Stefanovic" <spam@not.needed>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <418fd265$1@newsgroups.borland.com>
Subject: Re: Send a file from one PC to another...
Date: Mon, 8 Nov 2004 21:56:13 +0100
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 213.137.116.233
Message-ID: <418fdd86@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099947398 213.137.116.233 (8 Nov 2004 12:56:38 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx01.iad01.newshosting.com!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail