Searched refs:hostnamelen (Results 1 - 1 of 1) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/curl/curl-7.36.0/lib/
H A Dsocks.c219 ssize_t hostnamelen = 0; local
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)) {
[all...]

Completed in 59 milliseconds