Transfer socket connection between programs

marek.rocki at wp.pl marek.rocki at wp.pl
Mon Nov 12 15:54:35 EST 2007


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
> giving another program access to that space.
>
> Thanks in advance,
> James Howard

Under Windows you may want to use WSADuplicateSocket WinAPI function +
a named pipe (for example) to transfer the obtained socket data from
one process to the other.

Hope that helped,
Marek




More information about the Python-list mailing list