MCPcopy Create free account
hub / github.com/SmingHub/Sming / setMulticast

Method setMulticast

Sming/Components/Network/src/Network/UdpConnection.cpp:120–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120bool UdpConnection::setMulticast([[maybe_unused]] IpAddress ip)
121{
122#if LWIP_MULTICAST_TX_OPTIONS
123 if(udp == nullptr) {
124 initialize(nullptr);
125 }
126 if(udp != nullptr) {
127 udp_set_multicast_netif_addr(udp, (ip4_addr_t*)ip);
128 return true;
129 }
130#endif
131 return false;
132}
133
134bool UdpConnection::setMulticastTtl([[maybe_unused]] size_t ttl)
135{

Callers

nothing calls this directly

Calls 1

initializeFunction · 0.85

Tested by

no test coverage detected