Lines Matching refs:hostnamelen
219 ssize_t hostnamelen = 0;
230 hostnamelen = (ssize_t)strlen(hostname) + 1; /* length including NUL */
231 if(packetsize + hostnamelen <= SOCKS4REQLEN)
234 hostnamelen = 0; /* Flag: hostname did not fit in buffer */
239 packetsize + hostnamelen,
241 if((code != CURLE_OK) || (written != packetsize + hostnamelen)) {
245 if(protocol4a && hostnamelen == 0) {
247 hostnamelen = (ssize_t)strlen(hostname) + 1;
248 code = Curl_write_plain(conn, sock, (char *)hostname, hostnamelen,
250 if((code != CURLE_OK) || (written != hostnamelen)) {