[Freeswitch-trunk] [commit] r13799 - in freeswitch/trunk/src: . include

FreeSWITCH SVN andrew at freeswitch.org
Tue Jun 16 20:36:45 PDT 2009


Author: andrew
Date: Tue Jun 16 22:36:45 2009
New Revision: 13799

Log:
Wrap apr_mcast_hops as switch_mcast_hops


Modified:
   freeswitch/trunk/src/include/switch_apr.h
   freeswitch/trunk/src/switch_apr.c

Modified: freeswitch/trunk/src/include/switch_apr.h
==============================================================================
--- freeswitch/trunk/src/include/switch_apr.h	(original)
+++ freeswitch/trunk/src/include/switch_apr.h	Tue Jun 16 22:36:45 2009
@@ -1198,6 +1198,14 @@
  */
 SWITCH_DECLARE(switch_status_t) switch_mcast_join(switch_socket_t *sock, switch_sockaddr_t *join, switch_sockaddr_t *iface, switch_sockaddr_t *source);
 
+/**
+ * Set the Multicast Time to Live (ttl) for a multicast transmission.
+ * @param sock The socket to set the multicast ttl
+ * @param ttl Time to live to Assign. 0-255, default=1
+ * @remark If the TTL is 0, packets will only be seen by sockets on the local machine,
+ *     and only when multicast loopback is enabled.
+ */
+SWITCH_DECLARE(switch_status_t) switch_mcast_hops(switch_socket_t *sock, int32_t ttl);
 
 
 /** @} */

Modified: freeswitch/trunk/src/switch_apr.c
==============================================================================
--- freeswitch/trunk/src/switch_apr.c	(original)
+++ freeswitch/trunk/src/switch_apr.c	Tue Jun 16 22:36:45 2009
@@ -737,6 +737,11 @@
 	return apr_mcast_join(sock, join, iface, source);
 }
 
+SWITCH_DECLARE(switch_status_t) switch_mcast_hops(switch_socket_t *sock, int32_t ttl)
+{
+	return apr_mcast_hops(sock, ttl);
+}
+
 
 /* socket functions */
 



More information about the Freeswitch-trunk mailing list