MCPcopy Create free account
hub / github.com/defold/defold / SendPacketAndCaptureResponse

Function SendPacketAndCaptureResponse

engine/dlib/src/test/test_mdns.cpp:1100–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098 }
1099
1100 static bool SendPacketAndCaptureResponse(dmMDNS::HMDNS mdns, dmSocket::Socket send_socket, dmSocket::Socket capture_socket, const uint8_t* data, uint32_t size, const std::vector<std::string>& names, RawDnsPacket* packet, uint32_t timeout_ms)
1101 {
1102 if (!SendPacketToAddress(send_socket, data, size, MDNS_MULTICAST_IPV4, MDNS_PORT))
1103 return false;
1104 return WaitForMatchingResponse(mdns, capture_socket, names, packet, timeout_ms);
1105 }
1106
1107 static bool PacketProducesNoMatchingResponse(dmMDNS::HMDNS mdns, dmSocket::Socket send_socket, dmSocket::Socket capture_socket, const uint8_t* data, uint32_t size, const std::vector<std::string>& names, uint32_t timeout_ms)
1108 {

Callers 1

Calls 2

SendPacketToAddressFunction · 0.85
WaitForMatchingResponseFunction · 0.85

Tested by

no test coverage detected