Re: Re: Very exciting apache news

From: Date: Sat, 19 Aug 2000 15:40:26 +0000
Subject: Re: Re: Very exciting apache news
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12592@lists.php.net to get a copy of this message
> >No, I meant what I wrote. See R. Stevens' UNP and TCP/IP Illustrated for > >details > > > >On Linux the best way to do it is through sendmsg()/recvmsg() and on > >Windows I think you would use DuplicateHandle(). > > > >Not too many things use fd passing because it tends to be a pain to make > >portable. Some things I have run into that does use it is fhttpd, pty, > >and Gnome. > > I don't have the book. I thought sendmsg() just sends binary data over a > socket. How does this help you to share a file descriptor? Or would this > just mean relaying the data via sockets? Well, I am not about to type in the example from the book, but luckily I found an online version of the examples. Have a look at: http://www.cs.ucl.ac.uk/staff/J.Crowcroft/z02/stevens The fd/ and fd.s5/ directories there show how it is done. -Rasmus

« previous php.general (#12592) next »