Article View: borland.public.cppbuilder.internet.socket
Article #3328Re: TClientSocket and error events
From: Remy Lebeau (TeamB)
Date: Fri, 14 Oct 2005 17:53
Date: Fri, 14 Oct 2005 17:53
24 lines
1801 bytes
1801 bytes
"Stormy" <s70rmy@hotmail.com> wrote in message news:434fa1c3@newsgroups.borland.com... > Unfortunately, this is the case where exception is thrown > before OnError event occurs... That bug was already fixed in BCB6. The lookup error triggers the OnError event before throwing the exception. > I always thought it's easier and more reliable working with > non-blocking sockets. Nope. It makes you have to separate your processing logic. That makes things harder, not easier. > This is why I avoid using sockets in threads. Blocking sockets work fine in threads. Non-blocking sockets require a message queue, which threads don't have by default. Blocking sockets don't need a queue. Gambit
Technical Details
Message-ID:
<434ff0ad$2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<434eecdf@newsgroups.borland.com> <434f0102$1@newsgroups.borland.com> <434f5fe5@newsgroups.borland.com> <434f6246$1@newsgroups.borland.com> <434fa1c3@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,bc23240211b4e678 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: <434eecdf@newsgroups.borland.com> <434f0102$1@newsgroups.borland.com> <434f5fe5@newsgroups.borland.com> <434f6246$1@newsgroups.borland.com> <434fa1c3@newsgroups.borland.com> Subject: Re: TClientSocket and error events Date: Fri, 14 Oct 2005 10:53:11 -0700 Lines: 26 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: <434ff0ad$2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1129312429 68.69.17.41 (14 Oct 2005 10:53:49 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!mpls-transit-01.news.qwest.net!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail