Transfer socket connection between programs
James.w.Howard at gmail.com
Mon Nov 12 21:02:23 CET 2007
On Nov 12, 12:50 pm, Grant Edwards <gra... at visi.com> wrote:
> On 2007-11-12, JamesHoward <James.w.How... at gmail.com> wrote:
> > Does anyone know any method to have one program, acting as a
> > server transfer a socket connection to another program?
> The only way I know of is to use fork. When you fork a
> process, all open file-descriptors (including network
> connections) are inherited by the child.
> > I looked into transferring the connection via xml rpc to no
> > avail.
> I've no idea how that could work (even in theory) on any OS
> with which I'm familiar.
> > It seems to be a problem of getting access to a programs
> > private memory space and giving another program access to that
> > space.
> Private memory has nothing to do with it. The connection is a
> data structure that lives in kernel space, not in user space.
> Even if you could grant another process access to your "private
> memory space", it wouldn't help you "transfer a socket
> connection", since that connection is something the OSes
> Grant Edwards grante Yow! ! Everybody out of
> at the GENETIC POOL!
Does this mean that there is some way to transfer a pointer to that
kernel memory space from one program to another and have it be valid,
or is that kernel memory space protected and unusable from other
More information about the Python-list