| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Archives
libcurl 7.25 / multi / win32
From: adam smith <adamvietnam_at_googlemail.com>
Date: Sun, 20 May 2012 18:39:54 +0100
Hi,
I've been trying to get to grips with the multi interface (everything works
I initially tried to get fopen.c example working to no avail and so wrote a
This code runs fine but just loops as every loop curl_multi_fdset returns
Neither my write or debug are ever called.
Tracing into curl_mult_fdset I see this line...
bitmap = multi_getsock(easy, sockbunch, MAX_SOCKSPEREASYHANDLE);
this always returns bitmap==0
Tracing into multi_getsock....
easy->state==CURLM_STATE_WAITRESOLVE
which leads to the following getting called...
int Curl_resolver_getsock(struct connectdata *conn,
This is 0 is what is bitmap is set to.
What am I doing wrong? My enviroment is :
libcurl 7.25 (static library built from project file)
Thanks in advance,
Adam
//****************************************
void adamTest()
CURLM *mh=curl_multi_init();
//nb. uncommenting out this to use easy interface works
curl_multi_add_handle(mh, eh);
/* lets start the fetch */
fd_set fdread;
long curl_timeo = -1;
FD_ZERO(&fdread);
/* set a suitable timeout to play around with */
curl_multi_timeout(mh, &curl_timeo);
/* get file descriptors from the transfers */
rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
switch(rc)
/* cleanup */
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated January 05, 2012.
web site info