Re: [Python-Dev] sharing sockets among processes on windows

2012-03-14 Thread Glyph Lefkowitz
On Mar 13, 2012, at 5:27 PM, Kristján Valur Jónsson wrote: Hi, I´m interested in contributing a patch to duplicate sockets between processes on windows. Tha api to do this is WSADuplicateSocket/WSASocket(), as already used by dup() in the _socketmodule.c Here´s what I have: Just in case

Re: [Python-Dev] sharing sockets among processes on windows

2012-03-14 Thread Kristján Valur Jónsson
sockets among processes on windows On Mar 13, 2012, at 5:27 PM, Kristján Valur Jónsson wrote: Hi, I´m interested in contributing a patch to duplicate sockets between processes on windows. Tha api to do this is WSADuplicateSocket/WSASocket(), as already used by dup() in the _socketmodule.c Here´s

[Python-Dev] sharing sockets among processes on windows

2012-03-13 Thread Kristján Valur Jónsson
Hi, I´m interested in contributing a patch to duplicate sockets between processes on windows. Tha api to do this is WSADuplicateSocket/WSASocket(), as already used by dup() in the _socketmodule.c Here´s what I have: 1) Sockets have a method, duplicate(target_pid), that return a bytes