Article View: borland.public.cppbuilder.internet.socket
Article #4987Re: Send a file from one PC to another...
From: Dev Support
Date: Tue, 09 Nov 2004 00:26
Date: Tue, 09 Nov 2004 00:26
48 lines
2550 bytes
2550 bytes
Vladimir: Thanks for the help BUT I cannot find any examples that show file sending from one pc to another... Do you know how to help with this... Using the NM Stream client and server component to send a stream from one PC to another and was wondering if anyone knows how to prevent the component from thowing and exception when the PostIt does not work (Wrong IP, timeout, etc)??? I would like to do this with my own error handling... Thanks in advance... Marshall "Vladimir Stefanovic" <spam@not.needed> wrote in message news:418fdd86@newsgroups.borland.com... > > 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:
<418fef62@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.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-mailReferences:
<418fd265$1@newsgroups.borland.com> <418fdd86@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: "Dev Support" <infsoft@centurytel.net> Newsgroups: borland.public.cppbuilder.internet.socket References: <418fd265$1@newsgroups.borland.com> <418fdd86@newsgroups.borland.com> Subject: Re: Send a file from one PC to another... Date: Mon, 8 Nov 2004 16:26:39 -0800 Lines: 50 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 69.29.168.124 Message-ID: <418fef62@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1099951970 69.29.168.124 (8 Nov 2004 14:12:50 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.zanker.org!217.19.16.137.MISMATCH!news.cambrium.nl!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.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