stream: Call WSAStartup() before calling any winsock functions.
authorGurucharan Shetty <gshetty@nicira.com>
Mon, 17 Mar 2014 16:28:07 +0000 (09:28 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Tue, 18 Mar 2014 20:18:58 +0000 (13:18 -0700)
commit26e1fdc46c820354fe1345cb0c56b6fb77b04492
tree4c7f4fe335567937c06225455c50e2b18fa93397
parentfc48c3ba3085648ecf4d6c6b0863930bba47728d
stream: Call WSAStartup() before calling any winsock functions.

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@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/stream.c