Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 1997 23:01:20 -0400 (EDT)
From:      Brian Mitchell <brian@firehouse.net>
To:        Jaye Mathisen <mrcpu@cdsnet.net>
Cc:        Nadav Eiron <nadav@cs.technion.ac.il>, Adrian Chadd <adrian@deathstar.ml.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: socket redirector
Message-ID:  <Pine.BSI.3.95.970624230020.14368A-100000@shell.firehouse.net>
In-Reply-To: <Pine.NEB.3.95.970624190247.26020m-100000@mail.cdsnet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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).

> 
> 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
> > > <adrian@psinet.net.au>		|   stupid things because that would 
> > > 				|    stop you from doing clever things"
> > > 
> > > 
> > > 
> > Nadav
> > 
> 
> 



Brian Mitchell                                  brian@firehouse.net
"BSD code sucks. Of course, everything else sucks far more."
- Theo de Raadt






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.95.970624230020.14368A-100000>