Parse remote device IP address from text attributes first

PiperOrigin-RevId: 490324278
This commit is contained in:
Guogang Li
2022-11-22 13:37:21 -08:00
committed by Copybara-Service
parent defd5e03e7
commit c499d18af6
4 changed files with 160 additions and 78 deletions
@@ -44,6 +44,9 @@ std::wstring string_to_wstring(std::string str);
std::string wstring_to_string(std::wstring wstr);
ByteArray Sha256(absl::string_view input, size_t size);
// Reads the IPv4 addresses
std::vector<std::string> GetIpv4Addresses();
namespace Constants {
// The Id of the Service Name SDP attribute
const uint16_t SdpServiceNameAttributeId = 0x100;