Lines Matching refs:vSocks5
328 std::vector<uint8_t> vSocks5; in Socks5() local
329 vSocks5.push_back(0x05); // VER protocol version in Socks5()
330 vSocks5.push_back(0x01); // CMD CONNECT in Socks5()
331 vSocks5.push_back(0x00); // RSV Reserved in Socks5()
332 vSocks5.push_back(0x03); // ATYP DOMAINNAME in Socks5()
333 vSocks5.push_back(strDest.size()); // Length<=255 is checked at beginning of function in Socks5()
334 vSocks5.insert(vSocks5.end(), strDest.begin(), strDest.end()); in Socks5()
335 vSocks5.push_back((port >> 8) & 0xFF); in Socks5()
336 vSocks5.push_back((port >> 0) & 0xFF); in Socks5()
337 ret = send(hSocket, (const char*)begin_ptr(vSocks5), vSocks5.size(), MSG_NOSIGNAL); in Socks5()
338 if (ret != (ssize_t)vSocks5.size()) { in Socks5()