Article View: borland.public.cppbuilder.internet.socket
Article #3743WSAAsyncSelect delivers wrong event
From: Matthias B��ler
Date: Thu, 16 Jun 2005 11:50
Date: Thu, 16 Jun 2005 11:50
13 lines
1561 bytes
1561 bytes
Hi, I've created a client using Winsock on a XP machine with bcb5. The whole communication runs in a thread (class derived from TThread) and uses a hidden window for messages. The socket is created and a WSAAsyncSelect performed. I can connect to the server and disconnect from it. If I'm not sending too fast also reading and writing works fine, but at some point (couldn't figure out under which conditions) I do not receive the FD_READs any more. In the debugger I've seen that instead then always FD_WRITEs arrive. As a workaround I read and write at both events now, but if anyone has an idea or solution I would greatly appreciate it.
Technical Details
Message-ID:
<4dp2b19l5kphc49gt7da1tc7kqkr7li3il@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b2cc6fb13f59d0dd,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: Matthias B��ler <mbaessler@leibinger-numberingRemoveThis.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: WSAAsyncSelect delivers wrong event Date: Thu, 16 Jun 2005 13:50:56 +0200 Message-ID: <4dp2b19l5kphc49gt7da1tc7kqkr7li3il@4ax.com> X-Newsreader: Forte Free Agent 2.0/32.652 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.52.43.148 X-Trace: newsgroups.borland.com 1118922656 62.52.43.148 (16 Jun 2005 04:50:56 -0700) Lines: 13 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail