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

Method getTimeToLive

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

Source from the content-addressed store, hash-verified

174
175
176unsigned MulticastSocket::getTimeToLive() const
177{
178 unsigned ttl(0);
179 if (address().af() == AF_INET)
180 {
181 unsigned char cttl;
182 impl()->getOption(IPPROTO_IP, IP_MULTICAST_TTL, cttl);
183 ttl = cttl;
184 }
185 else
186 {
187#if defined(POCO_HAVE_IPv6)
188 impl()->getOption(IPPROTO_IPV6, IPV6_MULTICAST_HOPS, ttl);
189#endif
190 }
191 return ttl;
192}
193
194
195void MulticastSocket::joinGroup(const IPAddress& groupAddress)

Callers

nothing calls this directly

Calls 2

afMethod · 0.45
getOptionMethod · 0.45

Tested by

no test coverage detected