Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 1997 09:03:19 -0700 (PDT)
From:      Tom Samplonius <tom@sdf.com>
To:        Adrian Chadd <adrian@deathstar.ml.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: socket redirector
Message-ID:  <Pine.BSF.3.95q.970620090259.16057A-100000@misery.sdf.com>
In-Reply-To: <Pine.LNX.3.96.970620152045.15708A-100000@deathstar.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help

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?
> 
> 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"

  I use netcat from ports to do this, and it can tell.

Tom




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