Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 1996 18:57:45 PST
From:      Bill Fenner <fenner@parc.xerox.com>
To:        Bill Paul <wpaul@skynet.ctr.columbia.edu>
Cc:        hackers@freebsd.org
Subject:   Re: descriptors and sockets and pipes, oh my 
Message-ID:  <96Nov23.185755pst.177557@crevenia.parc.xerox.com>
In-Reply-To: Your message of "Sat, 23 Nov 96 10:02:10 PST." <199611231802.NAA05597@skynet.ctr.columbia.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <199611231802.NAA05597@skynet.ctr.columbia.edu> you write:
>Does anyone have a source code example handy of passing a file
>descriptor from one process to anyther via an AF_UNIX socket?

_Advanced Programming in the UNIX Environment_ provides an
example for 4.4 ("4.3+").  The source tar is available from
http://www.noao.edu/~rstevens.

>Also, is it possible to
>pass descriptors between totally unrelated processes, or must
>they be parent and child?

The only requirement for their relationship is that they have an
AF_UNIX socket open between them.

  Bill



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?96Nov23.185755pst.177557>