Lines Matching defs:port
210 Curl_safefree(up->port);
712 (data->port == needle->port) &&
1073 /* don't mix connections that use the "connect to port" feature and
1124 /* If we are bound to a specific local end (IP+port), we must not
1207 /* hostname and port must match */
1340 infof(data, "Connected to %s (%s) port %u",
1341 CURL_CONN_HOST_DISPNAME(conn), conn->primary_ip, conn->port);
1361 conn->port = -1; /* unknown at this point */
1686 /* 'port' and 'remote_port' are set in setup_connection_internals() */
1966 uc = curl_url_get(uh, CURLUPART_PORT, &data->state.up.port,
1973 unsigned long port = strtoul(data->state.up.port, NULL, 10);
1974 conn->port = conn->remote_port =
1976 data->set.use_port : curlx_ultous(port);
2050 if(conn->port < 0)
2052 was very likely already set to the proxy port */
2053 conn->port = p->defport;
2093 * http_proxy=http://some.server.dom:port/
2094 * https_proxy=http://some.server.dom:port/
2095 * ftp_proxy=http://some.server.dom:port/
2100 * all_proxy=http://some.server.dom:port/
2183 int port = -1;
2300 port = (int)strtol(portptr, NULL, 10);
2307 port = (int)data->set.proxyport;
2310 port = CURL_DEFAULT_HTTPS_PROXY_PORT;
2312 port = CURL_DEFAULT_PROXY_PORT;
2315 if(port >= 0) {
2316 proxyinfo->port = port;
2317 if(conn->port < 0 || sockstype || !conn->socks_proxy.host.rawalloc)
2318 conn->port = port;
2496 * name, proxy type and port number, so that we can reuse an existing
2699 * Figure out the remote port number and fix it in the URL
2702 * port number of various reasons.
2704 * The port number embedded in the URL is replaced, if necessary.
2711 /* if set, we use this instead of the port possibly given in the URL */
2869 * Parses a "host:port" string to connect to.
2870 * The hostname and the port may be empty; in this case, NULL is returned for
2871 * the hostname and -1 for the port.
2882 int port = -1;
2901 /* start scanning for port number at this point */
2937 /* Get port number off server.com:1080 */
2946 failf(data, "No valid port number in connect to host string (%s)",
2952 port = (int)portparse; /* we know it will fit */
2964 *port_result = port;
3015 /* an empty port always matches */
3020 /* check whether the URL's port matches */
3034 /* parse the hostname and port to connect to */
3043 * to host" and "connect to port" of the first string that matches.
3051 int port = -1;
3053 while(conn_to_host && !host && port == -1) {
3055 &host, &port);
3072 if(port >= 0) {
3073 conn->conn_to_port = port;
3075 infof(data, "Connecting to port: %d", port);
3078 /* no "connect to port" */
3080 port = -1;
3087 if(data->asi && !host && (port == -1) &&
3133 conn->conn_to_port = as->dst.port;
3138 Curl_alpnid2str(as->dst.alpnid), hostd, as->dst.port);
3216 rc = Curl_resolv_timeout(data, conn->hostname_resolve, (int)conn->port,
3245 /* If not connecting via a proxy, extract the port from the URL, if it is
3247 conn->port = conn->bits.conn_to_port ? conn->conn_to_port :
3255 rc = Curl_resolv_timeout(data, conn->hostname_resolve, (int)conn->port,
3504 * Figure out the remote port number and fix it in the URL
3521 * Process the "connect to" linked list of hostname/port mappings.
3522 * Do this after the remote port number has been fixed in the URL.
3559 * Check whether the port and the "connect to port" are equal.
3560 * Do this after the remote port number has been fixed in the URL.