🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Restart connection

#1949
From: Michel Leunen
Date: Sun, 17 Sep 2006 13:37
17 lines
1455 bytes
Ofer Gaatone wrote:

> How come there is no error when sending a message on a socket when there 
> is no server to answer ?

The send() and recv() functions return an error (SOCKET_ERROR) if the 
connection has been broken by the remote host. In this case, 
WSAGetLastError() yields WSAENETRESET.

Michel
-- 
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID: <450d4f92@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <450d3815$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e2087e2964f694e4
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 17 Sep 2006 15:37:27 +0200
From: Michel Leunen <nospam@noreply.please>
Organization: www.leunen.com
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Re: Restart connection
References: <450d3815$1@newsgroups.borland.com>
In-Reply-To: <450d3815$1@newsgroups.borland.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.247.83.62
Message-ID: <450d4f92@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1158500242 81.247.83.62 (17 Sep 2006 06:37:22 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail