🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #947

Re: timeout of recv

#947
From: Eduardo Jauch
Date: Mon, 02 Jul 2007 23:17
21 lines
1506 bytes
Remy Lebeau (TeamB) escreveu:
> 
> Make sure that you initialize WinSock to use version 2.0.  Older
> versions of WinSock did not support SO_RCVTIMEO and SO_SNDTIMEO
> 
> Personally, I never use SO_RCVTIMEO and SO_SNDTIMEO in my code.  I
> always use select() and it works fine.
> 
> 
> Gambit
> 
> 

Hum...

I was reading about using select...
First I'll do a test with SO_RCVTIMEO.

And then I'll try to use select.

Thanks Remy :)
Technical Details
Message-ID: <46898773@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46869b18$1@newsgroups.borland.com> <468715f2@newsgroups.borland.com> <4689322e$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,76bc0c5b0ec153e0
X-Google-Attributes: gid11508e,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 02 Jul 2007 20:17:13 -0300
From: Eduardo Jauch <eduardo.jauch@gmail.com>
User-Agent: Thunderbird 1.5.0.12 (Windows/20070509)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: timeout of recv
References: <46869b18$1@newsgroups.borland.com> <468715f2@newsgroups.borland.com> <4689322e$3@newsgroups.borland.com>
In-Reply-To: <4689322e$3@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 201.25.165.121
Message-ID: <46898773@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1183418227 201.25.165.121 (2 Jul 2007 16:17:07 -0700)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 1361