diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-03-02 15:34:15 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-03-02 15:34:15 +0000 |
commit | d1cfbd51b5f6e4246cec86ce3c9b7b1cde2f860a (patch) | |
tree | 5e1fa1259498a72310c2e1257c298525850be488 /lib/urldata.h | |
parent | a3ba6b7a6a4bf12e22e21dcdfb2359afadf45bb9 (diff) |
remade the port number stuff so that following locations work and doing
intermixed HTTP and FTP persistant connections also work!
Diffstat (limited to 'lib/urldata.h')
-rw-r--r-- | lib/urldata.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lib/urldata.h b/lib/urldata.h index d9139826e..2c2727953 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -468,9 +468,7 @@ struct UrlData { FILE *writeheader; /* write the header to this is non-NULL */ char *url; /* what to get */ char *freethis; /* if non-NULL, an allocated string for the URL */ - long port; /* which port to use (if non-protocol bind) */ - unsigned short remote_port; /* what remote port to connect to, not the proxy - port! */ + long use_port; /* which port to use (when not using default) */ struct Configbits bits; /* new-style (v7) flag data */ struct ssl_config_data ssl; /* this is for ssl-stuff */ @@ -697,15 +695,19 @@ CURLcode curl_write(CURLconnect *c_conn, char *buf, size_t amount, * this connect. This allows multiple connects from the same handle returned * by curl_open(). * + * By setting 'allow_port' to FALSE, the data->use_port will *NOT* be + * respected. + * * EXAMPLE * * CURLCode result; * CURL curl; * CURLconnect connect; - * result = curl_connect(curl, &connect); - */ + * result = curl_connect(curl, &connect); */ -CURLcode curl_connect(CURL *curl, CURLconnect **in_connect); +CURLcode curl_connect(CURL *curl, + CURLconnect **in_connect, + bool allow_port); /* * NAME curl_do() |