Article View: borland.public.cppbuilder.internet.socket
Article #5044Re: select() & ioctlsocket() problem
From: PaoloItaly
Date: Tue, 26 Oct 2004 07:34
Date: Tue, 26 Oct 2004 07:34
9 lines
1328 bytes
1328 bytes
> ret = ::select(sock+1, &read_fd, NULL, NULL, NULL); The old implementation of socket need the first parameters, we are making code that can be compiled also in Linux > Did you call recv() first to make sure that it is returning 0 bytes? After catching the disconnection, i make a loop (recv) to check is some (last) data are incoming Thanks
Technical Details
Message-ID:
<417dfe09$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!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>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,594e3ed9f24a168f X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "PaoloItaly" <paolot@FAKETHESPAMMERsirius-es.it> 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> Subject: Re: select() & ioctlsocket() problem Date: Tue, 26 Oct 2004 09:34:09 +0200 Lines: 11 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 NNTP-Posting-Host: 82.105.234.125 Message-ID: <417dfe09$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098776073 82.105.234.125 (26 Oct 2004 00:34:33 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail