]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Wrap apr_mcast_hops as switch_mcast_hops
authorAndrew Thompson <andrew@hijacked.us>
Wed, 17 Jun 2009 03:36:45 +0000 (03:36 +0000)
committerAndrew Thompson <andrew@hijacked.us>
Wed, 17 Jun 2009 03:36:45 +0000 (03:36 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13799 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_apr.h
src/switch_apr.c

index 38d7c7886950b588991d5554046132f6021ccaf3..9a94480ce37b2e24a29921ee68ea77a3bc16206f 100644 (file)
@@ -1198,6 +1198,14 @@ SWITCH_DECLARE(switch_status_t) switch_socket_timeout_set(switch_socket_t *sock,
  */
 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);
 
 
 /** @} */
index a3240e4dd4522734db39be57aa3c778384481c24..b729872aa8066b1ac8d86d05c03a0313db62d8c8 100644 (file)
@@ -737,6 +737,11 @@ SWITCH_DECLARE(switch_status_t) switch_mcast_join(switch_socket_t *sock, switch_
        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 */