🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: timeout of recv

#1033
From: Eduardo Jauch
Date: Sat, 30 Jun 2007 18:47
34 lines
1753 bytes
Eduardo Jauch escreveu:
> Eduardo Jauch escreveu:
>> Hello!
>>
>> My modem have some "problems", and eventually, he turns a "Timeout" 
>> message when I try to access any page.
>>
>> I have an aplication that use send and recv to access a page, and when 
>> this happens, the recv don't "return".
>>
>> How to adjust the timeout of recv? There's a way to do this?
>>
>>
>> Thanks!
> 
> 
> In time...
> 
> I use non-block sockets... So, looks I can't use select... right?
> 
> Anyway, Select seens to be a very "slow" method, isn't it?
> 
> Thanks!

A litle correction...
I don't know if my application is "non-block" (because I allways am 
confused about this... rsrsrs)

I use a SOCK_STREAM type socket.
And many send/recv.

All send will have a recv unless there an error or the server don't respond.

Thanks.
Technical Details
Message-ID: <4686a522$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46869b18$1@newsgroups.borland.com> <46869fb5$1@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: Sat, 30 Jun 2007 15:47:01 -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> <46869fb5$1@newsgroups.borland.com>
In-Reply-To: <46869fb5$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 201.35.7.101
Message-ID: <4686a522$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1183229218 201.35.7.101 (30 Jun 2007 11:46:58 -0700)
Lines: 34
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail