Article View: borland.public.cppbuilder.internet.socket
Article #5046Re: select() & ioctlsocket() problem
From: Remy Lebeau (TeamB)
Date: Tue, 26 Oct 2004 16:20
Date: Tue, 26 Oct 2004 16:20
13 lines
1490 bytes
1490 bytes
"PaoloItaly" <paolot@FAKETHESPAMMERsirius-es.it> wrote in message news:417dfe09$1@newsgroups.borland.com... > After catching the disconnection, i make a loop (recv) > to check is some (last) data are incoming You are missing the point - you are supposed to be calling recv() *as part of* the disconnection detection. The combination of select() and recv() is what tells you if the socket was disconnected. Gambit
Technical Details
Message-ID:
<417e7929$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4178ed30@newsgroups.borland.com> <417aad3c$1@newsgroups.borland.com> <417ca194$1@newsgroups.borland.com> <417d2558$1@newsgroups.borland.com> <417dfe09$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,594e3ed9f24a168f 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: <4178ed30@newsgroups.borland.com> <417aad3c$1@newsgroups.borland.com> <417ca194$1@newsgroups.borland.com> <417d2558$1@newsgroups.borland.com> <417dfe09$1@newsgroups.borland.com> Subject: Re: select() & ioctlsocket() problem Date: Tue, 26 Oct 2004 09:20:42 -0700 Lines: 15 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: <417e7929$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098807593 68.69.17.41 (26 Oct 2004 09:19:53 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail