Lines Matching refs:vSocks5
506 std::vector<uint8_t> vSocks5; in Socks5() local
507 vSocks5.push_back(SOCKSVersion::SOCKS5); // VER protocol version in Socks5()
508 vSocks5.push_back(SOCKS5Command::CONNECT); // CMD CONNECT in Socks5()
509 vSocks5.push_back(0x00); // RSV Reserved must be 0 in Socks5()
510 vSocks5.push_back(SOCKS5Atyp::DOMAINNAME); // ATYP DOMAINNAME in Socks5()
511 vSocks5.push_back(strDest.size()); // Length<=255 is checked at beginning of function in Socks5()
512 vSocks5.insert(vSocks5.end(), strDest.begin(), strDest.end()); in Socks5()
513 vSocks5.push_back((port >> 8) & 0xFF); in Socks5()
514 vSocks5.push_back((port >> 0) & 0xFF); in Socks5()
515 ret = send(hSocket, (const char*)vSocks5.data(), vSocks5.size(), MSG_NOSIGNAL); in Socks5()
516 if (ret != (ssize_t)vSocks5.size()) { in Socks5()