cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Can libcurl use default client port?

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Thu, 29 Jan 2004 13:35:00 +0100 (CET)

On Tue, 27 Jan 2004, Joe Halpin wrote:

> We're having a problem with some (possibly overzealous) firewall admins who
> don't want us to use ephemeral ports on the client side of a transfer
> connection. The standard says that the client should normally use a default
> port for each data transfer, and I'm wondering if libcurl can do this?

No. libcurl sets port 0 (zero) on all local ends for outgoing connections,
including ftp data connections. Having it set to zero makes the system pick an
available one and use that.

-- 
    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-31