[Libevent-users] Success compile libevent 1.4.3 with VC6
Nick Mathewson
nickm at freehaven.net
Tue Apr 29 13:52:25 EDT 2008
On Sun, Apr 27, 2008 at 02:01:44PM +0100, James Mansion wrote:
>
> >Also, I think this change will double-initialize winsock on all
> >programs that use multiple event bases, and double-shutdown winsock
> >whenever the bases are closed on those programs.
> >
> From the MSDN docs:
>
> An application can call *WSAStartup* more than once if it needs to
> obtain the *WSADATA* structure information more than once. On each such
> call, the application can specify any version number supported by the
> Winsock DLL.
>
> An application must call the *WSACleanup* function for every successful
> time the *WSAStartup* function is called.
Ah! Never mind that part of my message then. If this is so, I see no
reason not to add a WSAStartup call.
yrs,
--
Nick
More information about the Libevent-users
mailing list