From owner-freebsd-hackers Tue Jun 24 20:06:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA26034 for hackers-outgoing; Tue, 24 Jun 1997 20:06:48 -0700 (PDT) Received: from deathstar.ml.org (adrian@deathstar.ml.org [203.62.152.4]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA26029 for ; Tue, 24 Jun 1997 20:06:45 -0700 (PDT) Received: from localhost (adrian@localhost) by deathstar.ml.org (8.8.5/8.7.3) with SMTP id LAA26690; Wed, 25 Jun 1997 11:08:47 +0800 Date: Wed, 25 Jun 1997 11:08:47 +0800 (WST) From: Adrian Chadd To: Brian Mitchell cc: Jaye Mathisen , Nadav Eiron , freebsd-hackers@FreeBSD.ORG Subject: Re: socket redirector In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Tue, 24 Jun 1997, Brian Mitchell wrote: > On Tue, 24 Jun 1997, Jaye Mathisen wrote: > > When the peer closes a connection, read() should return 0 SOCK_STREAM only > - for udp, I don;t think there is a really 100% reliable way to determine > when the peer has shut down). Yep. I should have told people.. I solved it a couple days ago.. and yes it was a read() of a disconnected stream would return 0. Thanks for the help btw. I knew there were programs out there to do it, I just wanted to remember my sockets programming (since I've been spending FAR too much time coding cgi stuff in Perl *sigh*) > "BSD code sucks. Of course, everything else sucks far more." > - Theo de Raadt Interesting .sig *grin* -- Adrian Chadd | "Unix doesn't stop you from doing | stupid things because that would | stop you from doing clever things"