MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / setLoopback

Method setLoopback

base/poco/Net/src/MulticastSocket.cpp:122–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120
121
122void MulticastSocket::setLoopback(bool flag)
123{
124 if (address().af() == AF_INET)
125 {
126 unsigned char uflag = flag ? 1 : 0;
127 impl()->setOption(IPPROTO_IP, IP_MULTICAST_LOOP, uflag);
128 }
129 else
130 {
131#if defined(POCO_HAVE_IPv6)
132 unsigned uflag = flag ? 1 : 0;
133 impl()->setOption(IPPROTO_IPV6, IPV6_MULTICAST_LOOP, uflag);
134#endif
135 }
136}
137
138
139bool MulticastSocket::getLoopback() const

Callers

nothing calls this directly

Calls 2

afMethod · 0.45
setOptionMethod · 0.45

Tested by

no test coverage detected