cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: port

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 27 Jan 2004 14:09:15 +0100 (CET)

On Tue, 27 Jan 2004, Mohit Kumar wrote:

> 1. Is there anyway of assigning a valid port no. to a HTTP port?

I don't understand the question. What does "assigning a port number" mean? You
can run a HTTP server on any port number, and you can make libcurl request
HTTP pages from any port number.

> 2. suppose i am open one easy handle and before closing this one i open
> another. Then are these two handles accessing the net using two different
> threads or throught he same thread?

libcurl starts no threads. If you use multiple threads, then you know it. If
not, then there's only one thread.

> I want to have a dynamic support to for access to files on my appication,
> curl_multi_perform as suggested by you is a good option but it require sall
> handles to be appended before perform? Is there any way of doing this
> dynamically?

The curl_multi_perform() function is called very many times during a typical
transfer due to its non-blocking nature, and you can add easy-handles between
each and every invoke. It shouldn't be a problem.

-- 
    Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/
   [[ Do not send mails to this email address. They won't reach me. ]]
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
Received on 2004-01-27