Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

void UDPSocket::setMulticastTTL ( unsigned char  multicastTTL  )  throw (SocketException)

Set the multicast TTL.

Parameters:
multicastTTL multicast TTL
Exceptions:
SocketException thrown if unable to set TTL

Definition at line 357 of file PracticalSocket.cpp.

References Socket::sockDesc.

00357                                                                                  {
00358   if (setsockopt(sockDesc, IPPROTO_IP, IP_MULTICAST_TTL, 
00359                  (raw_type *) &multicastTTL, sizeof(multicastTTL)) < 0) {
00360     throw SocketException("Multicast TTL set failed (setsockopt())", true);
00361   }
00362 }


Generated on Fri Mar 19 10:32:59 2010 for ImpalaSrc by  doxygen 1.5.1