cURL / Mailing Lists / curl-library / Single Mail

curl-library

Responsivenes during connection?

From: Gabriel <mystml_at_adinet.com.uy>
Date: Tue, 11 Jan 2005 16:34:48 -0300

Hi guys, my first post here. First of all, congrats for libcurl, I love
little libraries that do one thing well (kiss/unix philosophy). About
me : Gabriel, 24, I run Mystery Studio, a small indie game developer
company, at http://www.mysterystudio.com

Now, the question. I'm using libcurl to post and pull highscores from
our site for our next game. I'm using the multi interface with just one
easy handle that does a GET and reads back the contents.

The multi interface works great, except it's blocking on the first call
to perform() - while doing the DNS lookup, I guess. After that, I can
poll it and it behaves as expected. In practice, my (engine drawn) mouse
pointer freezes during that call, which is not nice.

Is there a way to make the call more responsive, without resorting to
threads?

Thanks in advance,

        --Gabriel
Received on 2005-01-11