[1177] in linux-net channel archive
availability and usage of a function
daemon@ATHENA.MIT.EDU (Dave Wreski)
Mon Oct 9 01:16:19 1995
Date: Sun, 8 Oct 1995 18:09:51 -0400 (EDT)
From: Dave Wreski <dwreski@ultrix.ramapo.edu>
To: linux-net@vger.rutgers.edu
Hi all. I suppose this may not belong here, but I have done as much
research as I can to find an answer, with no luck so far.
I'm trying to figure out the best way to send file descriptors (actually
socket descriptors) to another process.
Is the struct msghdr supported under linux? I have been unable to find
any references to it. I do know that we have sendmsg and recvmsg, but I
don't know if they are supported. Is it possible, for simplicity, to
just used shared memory to pass file descriptors?
Stevens' book APUE, pg 487, describes how to pass fd's using sendmsg, and I
would like to do it this way.
Maybe someone could give me some pointers as to when I would use sendmsg,
if it is supported, or a way to do it using shared memory?
Thanks,
Dave Wreski