| 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 | { |
no test coverage detected