Re: Transfer socket connection between programs

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 12, 1:41 pm, JamesHoward <[EMAIL PROTECTED]> wrote: > Does anyone know any method to have one program, acting as a server > transfer a socket connection to another program? I looked into > transferring the connection via xml rpc to no avail. It seems to be a > problem of getting access to

Re: Transfer socket connection between programs

2007-11-12 Thread marek . rocki
JamesHoward napisa (a): > Does anyone know any method to have one program, acting as a server > transfer a socket connection to another program? I looked into > transferring the connection via xml rpc to no avail. It seems to be a > problem of getting access to a programs private memory space and >

Re: Transfer socket connection between programs

2007-11-12 Thread Laszlo Nagy
JamesHoward wrote: > Does anyone know any method to have one program, acting as a server > transfer a socket connection to another program? I looked into > transferring the connection via xml rpc to no avail. It seems to be a > problem of getting access to a programs private memory space and > gi

Re: Transfer socket connection between programs

2007-11-12 Thread Grant Edwards
On 2007-11-12, JamesHoward <[EMAIL PROTECTED]> wrote: >> 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 "transf

Re: Transfer socket connection between programs

2007-11-12 Thread JamesHoward
On Nov 12, 12:50 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-11-12, JamesHoward <[EMAIL PROTECTED]> 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 f

Re: Transfer socket connection between programs

2007-11-12 Thread Paul Rubin
JamesHoward <[EMAIL PROTECTED]> writes: > Does anyone know any method to have one program, acting as a server > transfer a socket connection to another program? I looked into > transferring the connection via xml rpc to no avail. You have to use an out of band communication mechanism. On Linux

Re: Transfer socket connection between programs

2007-11-12 Thread Grant Edwards
On 2007-11-12, JamesHoward <[EMAIL PROTECTED]> 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)

Transfer socket connection between programs

2007-11-12 Thread JamesHoward
Does anyone know any method to have one program, acting as a server transfer a socket connection to another program? I looked into transferring the connection via xml rpc to no avail. It seems to be a problem of getting access to a programs private memory space and giving another program access t