| 352 | } |
| 353 | |
| 354 | void 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 | |
| 361 | void UDPSocket::joinGroup(const string &multicastGroup) throw(SocketException) { |
| 362 | struct ip_mreq multicastRequest; |
nothing calls this directly
no test coverage detected