🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Restart connection

#1948
From: Ofer Gaatone
Date: Sun, 17 Sep 2006 13:00
17 lines
1734 bytes
Hi,
i write a client TCP application using Bcb6 under Win-2000. The 
application uses the connect, send, recv, etc API and NOT components.
Once  the server is up and opens a socket the client create the 
connection once and send & recv message. It closes the connection just
when the client terminate it's work.
If for any reason the server crushes and start immediately again, the 
connection is lost, and since i don't get any error (how come ?)
the connection between the client and the server is broken and i have to 
restart the client to fix it.
How can the client identify that the server crushed ?
How come there is no error when sending a message on a socket when there 
is no server to answer ?

Thanks

Ofer
Technical Details
Message-ID: <450d3815$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e2087e2964f694e4,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sun, 17 Sep 2006 15:00:54 +0200
From: Ofer Gaatone <ofer@roseman.co.il>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Restart connection
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 209.88.155.177
Message-ID: <450d3815$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1158494229 209.88.155.177 (17 Sep 2006 04:57:09 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!news2.euro.net!213.132.189.2.MISMATCH!multikabel.net!feed20.multikabel.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail