On 03/14/2011 12:38 AM, Bruno Haible wrote:
On mingw, I haven't even tried the module. It first requires - a 'socketpair' module for the test, - to rewrite the test to use the 'execute' module instead of fork().
MinGW would need a total rewrite. The Win32 API requires you to duplicate the handle in the context of the sending process, and send the new handle somehow to the receiving process. For example you can get information on the socket using gethostname (getpeername on the other side), create a named pipe based on the name, and send the handle on the named pipe.
It probably could fit within the sendfd/recvfd API, at least. Paolo