*BSD News Article 60391


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.bhp.com.au!mel.dit.csiro.au!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!gatech!newsfeed.internetmci.com!in1.uu.net!alterdial.uu.net!not-for-mail
From: jalvarez@uno.com
Newsgroups: comp.unix.bsd.freebsd.misc,comp.os.linux.development.apps
Subject: Checking for a closed socket connection
Date: Wed, 24 Jan 96 09:50:17 PDT
Lines: 8
Message-ID: <NEWTNews.822505959.29723.jalvarez@sundev.uno.com>
NNTP-Posting-Host: pool051.max6.ffx1.va.dynip.alter.net
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Newsreader: NEWTNews & Chameleon -- TCP/IP for MS Windows from NetManage
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:13046 comp.os.linux.development.apps:11405


Is there a simple way to test a socket descriptor for a closed
connection (e.g. if the connection to the other side was lost
and is no longer valid) ?

Thanks,
--Jesus Alvarez