Article View: demon.ip.developers
Article #1363Re: Sockets problem - anyone come across this
From: Darrell Gerber
Date: Wed, 22 Nov 1995 00:00
Date: Wed, 22 Nov 1995 00:00
21 lines
1892 bytes
1892 bytes
David Wood <david@thermoteknix.co.uk> wrote: >Hello one and all [snip] >Problem: [snip] >and put lots or debug trace statements in. I see there a quite a few >meesages handled after the origonal FD_ACCEPT or FD_READ. So, at the >begining of the handler, i put in an WSAAsyncSelect to select no more >messages, but as the documentation points out, there can (and are) still >messages in the queue to be handled. I haven't run across this myself but I am reusing someone elses code right now where they have dealt with this. Basically what they do is before closing the socket they check to see if there is any data left in the queue. If there is you can either wait for it to be sent or clear it. I'm not sure exactly how they checked the queue but I'll look to see if I can find the section of code and email it to you. The reason they had to do this was for the very reason you have run into. Maybe somebody else will have a solution where you don't have to check the queue.
Technical Details
Message-ID:
<48vgbc$257@mordred.gatech.edu>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<15034265wnr@thermoteknix.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c888,9c3cf10da91f1089 X-Google-Attributes: gid10c888,public X-Google-Thread: 10ff62,9c3cf10da91f1089 X-Google-Attributes: gid10ff62,public X-Google-Thread: 10a29b,9c3cf10da91f1089 X-Google-Attributes: gid10a29b,public X-Google-Thread: 10bb05,9c3cf10da91f1089 X-Google-Attributes: gid10bb05,public X-Google-Thread: fa91f,9c3cf10da91f1089 X-Google-Attributes: gidfa91f,public From: gerber@cc.gatech.edu (Darrell Gerber) Subject: Re: Sockets problem - anyone come across this Date: 1995/11/22 Message-ID: <48vgbc$257@mordred.gatech.edu> X-Deja-AN: 119933991 distribution: world references: <15034265wnr@thermoteknix.co.uk> organization: Georgia Tech newsgroups: demon.ip.developers,comp.os.ms-windows.networking.tcp-ip,comp.os.ms-windows.programmer.networks,comp.protocols.tcp-ip.ibmpc,demon.ip.support.win95