🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#4989
From: Remy Lebeau (TeamB)
Date: Mon, 08 Nov 2004 23:18
28 lines
1972 bytes
"Dev Support" <infsoft@centurytel.net> wrote in message
news:418fef62@newsgroups.borland.com...

> Thanks for the help BUT I cannot find any examples
> that show file sending from one pc to another...

There are NUMEROUS examples available.  For starters, go to
http://www.deja.com or http://www.mers.com and do a search through the
newsgroup archives.  Sample code is posted regularly.

> Using the NM Stream client and server component

I do not recommend those components at all.  The FastNet components are
notoriously buggy and problematic in general.

> was wondering if anyone knows how to prevent the component
> from thowing and exception when the PostIt does not work

You don't prevent it.  You catch it and then handle it as desired.

> (Wrong IP, timeout, etc)??? I would like to do this with
> my own error handling...

Try wrapping the code in a try...except bock.


Gambit
Technical Details
Message-ID: <418ffe89@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <418fd265$1@newsgroups.borland.com> <418fdd86@newsgroups.borland.com> <418fef62@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: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <418fd265$1@newsgroups.borland.com> <418fdd86@newsgroups.borland.com> <418fef62@newsgroups.borland.com>
Subject: Re: Send a file from one PC to another...
Date: Mon, 8 Nov 2004 15:18:52 -0800
Lines: 30
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: <418ffe89@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099955849 68.69.17.41 (8 Nov 2004 15:17:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail