MCPcopy Create free account
hub / github.com/OpenKinect/libfreenect2 / setMulticastTTL

Method setMulticastTTL

tools/streamer_recorder/PracticalSocket.cpp:354–359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354void UDPSocket::setMulticastTTL(unsigned char multicastTTL) throw(SocketException) {
355 if (setsockopt(sockDesc, IPPROTO_IP, IP_MULTICAST_TTL,
356 (raw_type *) &multicastTTL, sizeof(multicastTTL)) < 0) {
357 throw SocketException("Multicast TTL set failed (setsockopt())", true);
358 }
359}
360
361void UDPSocket::joinGroup(const string &multicastGroup) throw(SocketException) {
362 struct ip_mreq multicastRequest;

Callers

nothing calls this directly

Calls 1

SocketExceptionClass · 0.85

Tested by

no test coverage detected