From: cmdavis@ix.netcom.com(Chris Davis )
Subject: Need help with AF_INET, SOCK_STREAM sockets
Date: 1995/12/11 [thread overview]
Message-ID: <4aftms$l22@ixnews6.ix.netcom.com> (raw)
In-Reply-To: 4ab488$lv@vixen.cso.uiuc.edu
I'm having problems with sockets. Specifically, Internet stream sockets
( AF_INET, SOCK_STREAM variety). My problem is that I cannot seem to
be able to get the SO_KEEPALIVE option to work. If you do a "man" on
setsockopt, you will notice that DEC claims an application will get
SIGPIPE if the connection is broken.
This is not the case under v2.0 of the O/S. I even tried the SO_ERROR
option of setsockopt() and interrogated the so_error field that it
returns.
No error such as ETIMEDOUT was ever returned.
My application always gets SIGPIPE if I write() to the socket after the
remote reader has died, but I desperately need a way to determine that
the
remote reader no longer has his socket connected WITHOUT doing a
write().
Thanks!
Chris Davis
cmdavis@ix.netcom.com
prev parent reply other threads:[~1995-12-11 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1995-12-08 5:00 Alpha/OSF1 pthreads sample code anywhere? John Cavazos
1995-12-09 5:00 ` Michael W. Walker
1995-12-11 5:00 ` Chris Davis [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox