Date: Wed, 25 Jun 1997 11:08:47 +0800 (WST) From: Adrian Chadd <adrian@deathstar.ml.org> To: Brian Mitchell <brian@firehouse.net> Cc: Jaye Mathisen <mrcpu@cdsnet.net>, Nadav Eiron <nadav@cs.technion.ac.il>, freebsd-hackers@FreeBSD.ORG Subject: Re: socket redirector Message-ID: <Pine.LNX.3.96.970625110658.26684A-100000@deathstar.ml.org> In-Reply-To: <Pine.BSI.3.95.970624230020.14368A-100000@shell.firehouse.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <adrian@psinet.net.au> | stupid things because that would | stop you from doing clever things"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.3.96.970625110658.26684A-100000>
