slight winsock design change proposal
Andrey Turkin
andrey.turkin at gmail.com
Thu Mar 6 11:06:36 CST 2008
Actually the correct way IMHO is to implement
AcceptEx/GetAcceptExSockaddrs/TransmitFile in ws2_32.dll, and use
WSAIoctl(SIO_GET_EXTENSION_FUNCTION_POINTER) to get function addresses
in mswsock.dll. I believe this is that Windows' mswsock.dll do.
Christopher Harvey wrote:
> Dmitry Timoshkov wrote:
>
>> "Christopher Harvey" <arbuckle911 at gmail.com> wrote:
>>
>>
>>> Juan Lang wrote:
>>>
>>>>> I'm giving the mswsock.c file some development time. I need to
>>>>> know if
>>>>> the winsock API has been inited.
>>>>>
>>>>>
>>>> The question is, why do you need to know that? Can't you just
>>>> initialize it yourself? Then you'll know it has been.
>>>> --Juan
>>>>
>>>>
>>>>
>>> There are some functions that return errors if WSAStartup hasn't been
>>> called. I think wine should do that too, rather than call it for the
>>> application.
>>>
>> It would really help to at least name those "some functions", or even
>> better to provide a test case.
>>
>>
> Alright, I see where I'm going wrong. I was reading the WSAAccept
> function when I thought I was reading the AcceptEx page in MSDN.
>
> Sorry.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20080306/377a1017/attachment.htm
More information about the wine-devel
mailing list