From owner-freebsd-questions Fri May 22 09:06:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA13741 for freebsd-questions-outgoing; Fri, 22 May 1998 09:06:04 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from tornado.cisco.com (tornado.cisco.com [171.69.104.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA13679 for ; Fri, 22 May 1998 09:05:55 -0700 (PDT) (envelope-from bmcgover@bmcgover-pc.cisco.com) Received: from bmcgover-pc.cisco.com (bmcgover-pc.cisco.com [171.69.104.147]) by tornado.cisco.com (8.8.5-Cisco.1/8.6.5) with ESMTP id MAA20319 for ; Fri, 22 May 1998 12:05:24 -0400 (EDT) Received: from bmcgover-pc.cisco.com (localhost.cisco.com [127.0.0.1]) by bmcgover-pc.cisco.com (8.8.8/8.8.8) with ESMTP id MAA01001 for ; Fri, 22 May 1998 12:05:14 -0400 (EDT) (envelope-from bmcgover@bmcgover-pc.cisco.com) Message-Id: <199805221605.MAA01001@bmcgover-pc.cisco.com> To: questions@FreeBSD.ORG Reply-To: mcgovern@spoon.beta.com Subject: Couple of questions on socket implementation... Date: Fri, 22 May 1998 12:05:14 -0400 From: Brian McGovern Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 1.) What is the "right way" to set a socket to be non-blocking. I thought this was a feature of setsockopt(), but it doesn't seem to be from man page (can't find anything on blocking). 2.) Also, when the peer of, say, a tcp connection goes away, how is this reported to the other end? Via a signal? Error on read/write? Thanks for the input. -Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message