| OLD | NEW |
| 1 /* Copyright 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /* From ppb_udp_socket.idl modified Sat Jun 22 10:56:26 2013. */ | 6 /* From ppb_udp_socket.idl modified Thu Nov 6 16:20:36 2014. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PPB_UDP_SOCKET_H_ | 8 #ifndef PPAPI_C_PPB_UDP_SOCKET_H_ |
| 9 #define PPAPI_C_PPB_UDP_SOCKET_H_ | 9 #define PPAPI_C_PPB_UDP_SOCKET_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 PP_UDPSOCKET_OPTION_SEND_BUFFER_SIZE = 2, | 57 PP_UDPSOCKET_OPTION_SEND_BUFFER_SIZE = 2, |
| 58 /** | 58 /** |
| 59 * Specifies the total per-socket buffer space reserved for receives. Value's | 59 * Specifies the total per-socket buffer space reserved for receives. Value's |
| 60 * type should be <code>PP_VARTYPE_INT32</code>. | 60 * type should be <code>PP_VARTYPE_INT32</code>. |
| 61 * This option can only be set after a successful <code>Bind()</code> call. | 61 * This option can only be set after a successful <code>Bind()</code> call. |
| 62 * | 62 * |
| 63 * Note: This is only treated as a hint for the browser to set the buffer | 63 * Note: This is only treated as a hint for the browser to set the buffer |
| 64 * size. Even if <code>SetOption()</code> succeeds, the browser doesn't | 64 * size. Even if <code>SetOption()</code> succeeds, the browser doesn't |
| 65 * guarantee it will conform to the size. | 65 * guarantee it will conform to the size. |
| 66 */ | 66 */ |
| 67 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE = 3 | 67 PP_UDPSOCKET_OPTION_RECV_BUFFER_SIZE = 3, |
| 68 /** |
| 69 * Specifies whether the packets sent from the host to the multicast group |
| 70 * should be looped back to the host or not. Value's type should be |
| 71 * <code>PP_VARTYPE_BOOL</code>. |
| 72 * This option can only be set before calling <code>Bind()</code>. |
| 73 */ |
| 74 PP_UDPSOCKET_OPTION_MULTICAST_LOOP = 4, |
| 75 /** |
| 76 * Specifies the time-to-live for packets sent to the multicast group. The |
| 77 * value should be within 0 to 255 range. The default value is 1 and means |
| 78 * that packets will not be routed beyond the local network. Value's type |
| 79 * should be <code>PP_VARTYPE_INT32</code>. |
| 80 * This option can only be set before calling <code>Bind()</code>. |
| 81 */ |
| 82 PP_UDPSOCKET_OPTION_MULTICAST_TTL = 5, |
| 83 /** |
| 84 * Specifies the network interface from which the multicast packets will be |
| 85 * sent and received, as specified by <code>PPB_NetworkList</code>. Value's |
| 86 * type should be <code>PP_VARTYPE_INT32</code>. |
| 87 * This option can only be set before calling <code>Bind()</code>. |
| 88 */ |
| 89 PP_UDPSOCKET_OPTION_MULTICAST_IF = 6, |
| 90 /** |
| 91 * Joins the multicast group with given address as specifed by |
| 92 * <code>PPB_NetAddress</code> API. Value's type should be |
| 93 * <code>PP_VARTYPE_RESOURCE</code>. |
| 94 * This option can only be set after a successful <code>Bind()</code> call. |
| 95 */ |
| 96 PP_UDPSOCKET_OPTION_MULTICAST_JOIN = 7, |
| 97 /** |
| 98 * Leaves the multicast group with given address as specifed by |
| 99 * <code>PPB_NetAddress</code> API. Value's type should be |
| 100 * <code>PP_VARTYPE_RESOURCE</code>. |
| 101 * This option can only be set after a successful <code>Bind()</code> call. |
| 102 */ |
| 103 PP_UDPSOCKET_OPTION_MULTICAST_LEAVE = 8 |
| 68 } PP_UDPSocket_Option; | 104 } PP_UDPSocket_Option; |
| 69 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_UDPSocket_Option, 4); | 105 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_UDPSocket_Option, 4); |
| 70 /** | 106 /** |
| 71 * @} | 107 * @} |
| 72 */ | 108 */ |
| 73 | 109 |
| 74 /** | 110 /** |
| 75 * @addtogroup Interfaces | 111 * @addtogroup Interfaces |
| 76 * @{ | 112 * @{ |
| 77 */ | 113 */ |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 struct PP_CompletionCallback callback); | 244 struct PP_CompletionCallback callback); |
| 209 }; | 245 }; |
| 210 | 246 |
| 211 typedef struct PPB_UDPSocket_1_0 PPB_UDPSocket; | 247 typedef struct PPB_UDPSocket_1_0 PPB_UDPSocket; |
| 212 /** | 248 /** |
| 213 * @} | 249 * @} |
| 214 */ | 250 */ |
| 215 | 251 |
| 216 #endif /* PPAPI_C_PPB_UDP_SOCKET_H_ */ | 252 #endif /* PPAPI_C_PPB_UDP_SOCKET_H_ */ |
| 217 | 253 |
| OLD | NEW |