[Home] [Groups] - Message: [Prev in Group] [Next in Group]
8075: [MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library
[Full Header] [Plain Text]
From: Oliver Jowett <oliver@jowett.manawatu.planet.co.nz>
Newsgroups: nu.kanga.list.mud-dev
Date: Thu, 6 Aug 1998 01:25:20 +1200 (NZST)
References: [1]
Organization: Kanga.Nu
On Tue, 4 Aug 1998, J C Lawrence wrote:
> Under Unix you're out of luck. Under
> Unix file handles are private to processes and *CANNOT* be handed
> between processes (without nasty kernel/TCP/IP stack hacking> (ie file
> handle 0xXXXX under one process has no relevance to handle OxXXXX of
> another process).
Can't you pass descriptors between processes using sendmsg/recvmsg on an
AF_UNIX socket?
man recvmsg:
Open file descriptors are now passed as ancillary data for
AF_UNIX domain sockets, with cmsg_level set to SOL_SOCKET
and cmsg_type set to SCM_RIGHTS.
I haven't used it myself, though..
-O