🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: WSAGetLastError return always 6

#1266
From: Eduardo Jauch
Date: Mon, 26 Feb 2007 03:14
12 lines
1393 bytes
Eduardo Jauch escreveu:
> I search on help but not find any error code 6 returned by 
> WSAGetLastError...

I put the WSAGetLastError after the line that causes the error...
Now it allways return 0... What seens more correct, because recv is 
returning 0 and not -1...

But I'm curious now...

Why is recv returning 0?
It wouldn't wait until receive some data?
Technical Details
Message-ID: <45e25047$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45e24baa@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,ead06e5a7c488245
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 26 Feb 2007 00:14:06 -0300
From: Eduardo Jauch <eduardo.jauch@gmail.com>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: WSAGetLastError return always 6
References: <45e24baa@newsgroups.borland.com>
In-Reply-To: <45e24baa@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 201.3.108.172
Message-ID: <45e25047$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172459591 201.3.108.172 (25 Feb 2007 19:13:11 -0800)
Lines: 12
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail