From owner-freebsd-hackers Tue Jun 24 19:04:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA23004 for hackers-outgoing; Tue, 24 Jun 1997 19:04:04 -0700 (PDT) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA22971 for ; Tue, 24 Jun 1997 19:03:57 -0700 (PDT) Received: from mail.cdsnet.net (mail.cdsnet.net [204.118.244.5]) by mail.cdsnet.net (8.8.5/8.7.3) with SMTP id TAA22585; Tue, 24 Jun 1997 19:03:02 -0700 (PDT) Date: Tue, 24 Jun 1997 19:02:58 -0700 (PDT) From: Jaye Mathisen To: Nadav Eiron cc: Adrian Chadd , 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 Or netcat out of ports. It would probably work fine as well. On Sat, 21 Jun 1997, Nadav Eiron wrote: > > > On Fri, 20 Jun 1997, Adrian Chadd wrote: > > > Hey guys. > > > > I'm writing a quick socket redirector for something. Its run out of inetd, > > and basically opens a socket somewhere and acts as a pipe between the two. > > I'm using select(), and its working fine. The only problem I'm having is > > that I don't know how to tell when the remote end closes the connection > > down, so that I can just close everything down, and quit. > > > > Any ideas on how I'd do this? > > Why not just use plug-gw from the fwtk? From your description it sounds > like just the thing you need. > > > > > Thanks, > > > > -- > > Adrian Chadd | "Unix doesn't stop you from doing > > | stupid things because that would > > | stop you from doing clever things" > > > > > > > Nadav >