[ovs-dev] [PATCH 2/2] stream: Call WSAStartup() before calling any winsock functions.

Gurucharan Shetty shettyg at nicira.com
Mon Mar 17 21:55:09 UTC 2014


On Mon, Mar 17, 2014 at 2:10 PM, Ben Pfaff <blp at nicira.com> wrote:
> On Mon, Mar 17, 2014 at 01:13:32PM -0700, Gurucharan Shetty wrote:
>> The WSAStartup function initiates use of the Winsock DLL by a process.
>> The function should be called before any winsock related functions
>> are called.
>>
>> Since, we use stream-fd-windows through pstream_open or stream_open
>> add the WSAStartup() call there.
>>
>> The current version of the Windows Sockets specification is version 2.2
>>
>> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
>
> Should we use pthread_once()?
If I am not wrong, stream.c is only called from single thread (main
thread), isn't it? Do we still need pthread_once()?



More information about the dev mailing list