Searched refs:hostnamelen (Results 1 – 1 of 1) sorted by relevance
225 ssize_t hostnamelen = 0; in Curl_SOCKS4() local236 hostnamelen = (ssize_t)strlen(hostname) + 1; /* length including NUL */ in Curl_SOCKS4()237 if(packetsize + hostnamelen <= SOCKS4REQLEN) in Curl_SOCKS4()240 hostnamelen = 0; /* Flag: hostname did not fit in buffer */ in Curl_SOCKS4()245 packetsize + hostnamelen, in Curl_SOCKS4()247 if(code || (written != packetsize + hostnamelen)) { in Curl_SOCKS4()251 if(protocol4a && hostnamelen == 0) { in Curl_SOCKS4()253 hostnamelen = (ssize_t)strlen(hostname) + 1; in Curl_SOCKS4()254 code = Curl_write_plain(conn, sock, (char *)hostname, hostnamelen, in Curl_SOCKS4()256 if(code || (written != hostnamelen)) { in Curl_SOCKS4()