Index: ppapi/api/ppb_udp_socket.idl |
diff --git a/ppapi/api/ppb_udp_socket.idl b/ppapi/api/ppb_udp_socket.idl |
index e4c87b2a1cd5599a71c2e7727bd5d4d370177310..76e26512857da98ae79df788db3d8e268c79a4eb 100644 |
--- a/ppapi/api/ppb_udp_socket.idl |
+++ b/ppapi/api/ppb_udp_socket.idl |
@@ -52,7 +52,48 @@ enum PP_UDPSocket_Option { |
* size. Even if <code>SetOption()</code> succeeds, the browser doesn't |
* guarantee it will conform to the size. |
*/ |
- PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE = 3 |
+ PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE = 3, |
+ |
+ /** |
+ * Specifies whether the packets sent from the host to the multicast group |
+ * should be looped back to the host or not. Value's type should be |
+ * <code>PP_VARTYPE_BOOL</code>. |
+ * This option can only be set before calling <code>Bind()</code>. |
+ */ |
+ PP_UDPSOCKET_OPTION_MULTICAST_LOOP = 4, |
+ |
+ /** |
+ * Specifies the time-to-live for packets sent to the multicast group. The |
+ * value should be within 0 to 255 range. The default value is 1 and means |
+ * that packets will not be routed beyond the local network. Value's type |
+ * should be <code>PP_VARTYPE_INT32</code>. |
+ * This option can only be set before calling <code>Bind()</code>. |
+ */ |
+ PP_UDPSOCKET_OPTION_MULTICAST_TTL = 5, |
+ |
+ /** |
+ * Specifies the network interface from which the multicast packets will be |
+ * sent and received, as specified by <code>PPB_NetworkList</code>. Value's |
+ * type should be <code>PP_VARTYPE_INT32</code>. |
+ * This option can only be set before calling <code>Bind()</code>. |
+ */ |
+ PP_UDPSOCKET_OPTION_MULTICAST_IF = 6, |
+ |
+ /** |
+ * Joins the multicast group with given address as specifed by |
+ * <code>PPB_NetAddress</code> API. Value's type should be |
+ * <code>PP_VARTYPE_RESOURCE</code>. |
+ * This option can only be set after a successful <code>Bind()</code> call. |
+ */ |
+ PP_UDPSOCKET_OPTION_MULTICAST_JOIN = 7, |
+ |
+ /** |
+ * Leaves the multicast group with given address as specifed by |
+ * <code>PPB_NetAddress</code> API. Value's type should be |
+ * <code>PP_VARTYPE_RESOURCE</code>. |
+ * This option can only be set after a successful <code>Bind()</code> call. |
+ */ |
+ PP_UDPSOCKET_OPTION_MULTICAST_LEAVE = 8 |
}; |
/** |