Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: ppapi/c/private/ppb_udp_socket_private.h

Issue 704133005: Pepper: Add support for multicast in PPB_UDPSocket API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, initial unit tests Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/c/private/ppb_udp_socket_private.h
diff --git a/ppapi/c/private/ppb_udp_socket_private.h b/ppapi/c/private/ppb_udp_socket_private.h
index d6e283c42cce9b9d417796be9c136f5b553bbc83..6e4640c8f278aca5cfc8d18d5fefd5b0ddfd84b4 100644
--- a/ppapi/c/private/ppb_udp_socket_private.h
+++ b/ppapi/c/private/ppb_udp_socket_private.h
@@ -3,7 +3,7 @@
* found in the LICENSE file.
*/
-/* From private/ppb_udp_socket_private.idl modified Mon Jun 24 09:53:43 2013. */
+/* From private/ppb_udp_socket_private.idl modified Mon Nov 10 18:30:10 2014. */
#ifndef PPAPI_C_PRIVATE_PPB_UDP_SOCKET_PRIVATE_H_
#define PPAPI_C_PRIVATE_PPB_UDP_SOCKET_PRIVATE_H_
@@ -40,9 +40,25 @@ typedef enum {
/* Allow sending and receiving packets sent to and from broadcast
* addresses. Value's type should be PP_VARTYPE_BOOL. */
PP_UDPSOCKETFEATURE_PRIVATE_BROADCAST = 1,
+ /* Whether multicast packets sent from the host to the multicast group should
+ * be looped back to the host or not. Value's type should be PP_VARTYPE_BOOL.
+ */
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_LOOP = 2,
+ /* Set time-to-live for multicast packets, from 0 to 255. Value's type should
+ * be PP_VARTYPE_INT32. */
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_TTL = 3,
+ /* Set network interface from which the multicast packets will be sent and
+ * received. Value's type should be PP_VARTYPE_INT32. */
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_IF = 4,
+ /* Join a multicast group and start receiving packets. Value's type should be
+ * PP_VARTYPE_RESOURCE. */
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_JOIN = 5,
+ /* Leave a multicast group previously joined. Value's type should be
+ * PP_VARTYPE_RESOURCE. */
+ PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_LEAVE = 6,
/* Special value for counting the number of available
* features. Should not be passed to SetSocketFeature(). */
- PP_UDPSOCKETFEATURE_PRIVATE_COUNT = 2
+ PP_UDPSOCKETFEATURE_PRIVATE_COUNT = 7
} PP_UDPSocketFeature_Private;
PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_UDPSocketFeature_Private, 4);
/**

Powered by Google App Engine
This is Rietveld 408576698