[MUD-Dev] Re: Socket-Script: Socket-capabable script language and matching library
Oliver Jowett
oliver at jowett.manawatu.planet.co.nz
Thu Aug 6 01:25:20 CEST 1998
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
More information about the mud-dev-archive
mailing list