On 05/01/2011 04:29 PM, Bastien ROUCARIES wrote:
Did you test if dup2 work for socket ?

According tohttp://www.suacommunity.com/dictionary/dup-entry.php
andhttp://blog.csdn.net/linlu11/archive/2008/06/06/2518571.aspx  it
will need more work.

dup2 indeed may not work for a socket on Windows. It would work on Wine, since WSADuplicateSocket is just doing DuplicateHandle on Wine, but I don't know what Windows actually does.

That's definitely something to remember, thanks for pointing it out.

Paolo

Reply via email to