Article View: borland.public.cppbuilder.internet.socket
Article #2475Re: TServerSocket SendText Exception
From: Remy Lebeau (TeamB)
Date: Mon, 17 Apr 2006 21:21
Date: Mon, 17 Apr 2006 21:21
17 lines
1671 bytes
1671 bytes
"Eric Patterson" <eric.patterson@bepco.com> wrote in message news:4443e13c$1@newsgroups.borland.com... > What about this: You are still not checking the reason why -1 is being returned. The only condition that is valid for the OnWrite event to be triggered is when WSAGetLastError() returns WSAEWOULDBLOCK. You are also not taking into account that non-blocking sockets require window messages to be processed in order for the OnWrite event to be triggered at all, so your code is going to deadlock indefinately since you do not process pending messages at all. And you are still not adjusting the writing to not send characters that have already been sent. Gambit
Technical Details
Message-ID:
<4444089f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44439c71$1@newsgroups.borland.com> <4443ca2a$1@newsgroups.borland.com> <4443e13c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,fea0b13af0f4efa8 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: <44439c71$1@newsgroups.borland.com> <4443ca2a$1@newsgroups.borland.com> <4443e13c$1@newsgroups.borland.com> Subject: Re: TServerSocket SendText Exception Date: Mon, 17 Apr 2006 14:21:30 -0700 Lines: 19 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: <4444089f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1145309343 68.69.17.41 (17 Apr 2006 14:29:03 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail