Lines Matching refs:proxyfd
1449 int proxyfd, r, authretry = 0; in socks_connect() local
1472 proxyfd = remote_connect(proxyhost, proxyport, proxyhints); in socks_connect()
1474 if (proxyfd < 0) in socks_connect()
1486 cnt = atomicio(vwrite, proxyfd, buf, 3); in socks_connect()
1490 cnt = atomicio(read, proxyfd, buf, 2); in socks_connect()
1539 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1543 cnt = atomicio(read, proxyfd, buf, 4); in socks_connect()
1550 cnt = atomicio(read, proxyfd, buf + 4, 6); in socks_connect()
1555 cnt = atomicio(read, proxyfd, buf + 4, 18); in socks_connect()
1575 cnt = atomicio(vwrite, proxyfd, buf, wlen); in socks_connect()
1579 cnt = atomicio(read, proxyfd, buf, 8); in socks_connect()
1605 cnt = atomicio(vwrite, proxyfd, buf, r); in socks_connect()
1624 if ((cnt = atomicio(vwrite, proxyfd, buf, r)) != (size_t)r) in socks_connect()
1629 if ((r = atomicio(vwrite, proxyfd, "\r\n", 2)) != 2) in socks_connect()
1633 proxy_read_line(proxyfd, buf, sizeof(buf)); in socks_connect()
1640 close(proxyfd); in socks_connect()
1648 proxy_read_line(proxyfd, buf, sizeof(buf)); in socks_connect()
1657 return (proxyfd); in socks_connect()