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

Function SendPacketOnInterface

engine/dlib/src/dlib/mdns.cpp:669–676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

667 }
668
669 static bool SendPacketOnInterface(dmSocket::Socket socket, const uint8_t* data, uint32_t size, const dmSocket::Address& interface_address)
670 {
671 dmSocket::Result sr = dmSocket::SetMulticastIf(socket, interface_address);
672 if (sr != dmSocket::RESULT_OK)
673 return false;
674
675 return SendPacket(socket, data, size);
676 }
677
678 static void EnsureMemberships(dmSocket::Socket socket, const dmArray<dmSocket::Address>& interface_addresses, dmArray<dmSocket::Address>* membership_addresses)
679 {

Callers 2

SendPacketOnInterfacesFunction · 0.85
HandleAnnounceResponseFunction · 0.85

Calls 2

SendPacketFunction · 0.85
SetMulticastIfFunction · 0.70

Tested by

no test coverage detected