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

Method setTimeToLive

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

Source from the content-addressed store, hash-verified

158
159
160void MulticastSocket::setTimeToLive(unsigned value)
161{
162 if (address().af() == AF_INET)
163 {
164 unsigned char ttl = (unsigned char) value;
165 impl()->setOption(IPPROTO_IP, IP_MULTICAST_TTL, ttl);
166 }
167 else
168 {
169#if defined(POCO_HAVE_IPv6)
170 impl()->setOption(IPPROTO_IPV6, IPV6_MULTICAST_HOPS, value);
171#endif
172 }
173}
174
175
176unsigned MulticastSocket::getTimeToLive() const

Callers

nothing calls this directly

Calls 2

afMethod · 0.45
setOptionMethod · 0.45

Tested by

no test coverage detected