Article View: borland.public.cppbuilder.internet.socket
Article #5663Re: Indy 9.0.14 UDP client question
From: Remy Lebeau (TeamB)
Date: Fri, 02 Jul 2004 17:56
Date: Fri, 02 Jul 2004 17:56
25 lines
1640 bytes
1640 bytes
"Dhr. Kweetnie" <omni@scient.net> wrote in message
news:40e5328f$1@newsgroups.borland.com...
> The problem I have with the TIdUDPClient is that if I try to receive
> the reply immediately after I send the test message, I get a popup
> message box for socket error #10054 ("Connection reset by peer")
> when the server is not present. What I expected was to catch it as
> an exception but this doesn't happen. Compiling for Release or
> Debug does not make a difference. I just don't get the exception!
It is an exception to begin with, so yes you can catch it as an exception.
> catch( EIdSocketError& e )
Change that to this instead:
catch( const EIdException &e )
Or:
catch( const Exception &e )
Gambit
Technical Details
Message-ID:
<40e5a1d6$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40e5328f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2d5124ce231198c9 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <40e5328f$1@newsgroups.borland.com> Subject: Re: Indy 9.0.14 UDP client question Date: Fri, 2 Jul 2004 10:56:49 -0700 Lines: 27 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.10 Message-ID: <40e5a1d6$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088790998 68.69.17.10 (2 Jul 2004 10:56:38 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail