cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: [MSW] multi.h and winsock2.h

From: David Byron <DByron_at_everdreamcorp.com>
Date: Wed, 21 Jul 2004 10:54:13 -0700

On Wed, 21 July 2004, Casey ODonnell wrote:

> I was curious if the current version of libCURL needed to use
> Winsock2? I get conflicts using Winsock2 with another application
> that links against Winsock1 for several elements. I'm also slightly
> confused because the make files currently link against the general
> winsock library, not winsock2, despite Multi.h including
> <winsock2.h>. So...I'm just trying to make sure I'm not just being
> dumb.

The code in CVS (and for awhile now -- the CHANGES file says 3-mar-04)
dynamically loads the "correct" version. Most of the time that's
WinSock 1.1. But, telnet requires 2.0, as does IPv6.

It's not winsock2.h that determines what version to use, but the info
passed to the WSAStartup call(s).

-DB
Received on 2004-07-21