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

Method getLoopback

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

Source from the content-addressed store, hash-verified

137
138
139bool MulticastSocket::getLoopback() const
140{
141 bool flag = false;
142 if (address().af() == AF_INET)
143 {
144 unsigned char uflag;
145 impl()->getOption(IPPROTO_IP, IP_MULTICAST_LOOP, uflag);
146 flag = uflag != 0;
147 }
148 else
149 {
150#if defined(POCO_HAVE_IPv6)
151 unsigned uflag;
152 impl()->getOption(IPPROTO_IPV6, IPV6_MULTICAST_LOOP, uflag);
153 flag = uflag != 0;
154#endif
155 }
156 return flag;
157}
158
159
160void MulticastSocket::setTimeToLive(unsigned value)

Callers

nothing calls this directly

Calls 2

afMethod · 0.45
getOptionMethod · 0.45

Tested by

no test coverage detected