mswsock:Implement 3 functions by calling through SIO_GET_EXTENSION_FUNCTION_POINTER (try 2)

Jon Griffiths jon_p_griffiths at yahoo.com
Sun Jul 6 10:13:38 CDT 2008


Hi,

Based on Andreys comments, This version gathers the implementation ptrs when AcceptEx is called, using the accepting socket and avoiding calling WSIoctl with a 0 socket. I've added a comment regarding the circumstances under which we may need to modify this approach.

We can't sensibly do any mapping between output buffers and sockets in mswsock - since we'd never know when to free a given mapping, we'd end up leaking them. When AcceptEx is implemented in ws2_32 it will need to own the mapping; it can then free it when the socket is closed.

Cheers
Jon



      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mswsock_TransmitFile_1_try2.diff
Type: text/x-diff
Size: 9166 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20080706/33ad73c6/attachment-0001.diff 


More information about the wine-patches mailing list