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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 private/ppb_udp_socket_private.idl modified Mon Jun 24 09:53:43 2013. */ 6 /* From private/ppb_udp_socket_private.idl modified Mon Nov 10 18:30:10 2014. */
7 7
8 #ifndef PPAPI_C_PRIVATE_PPB_UDP_SOCKET_PRIVATE_H_ 8 #ifndef PPAPI_C_PRIVATE_PPB_UDP_SOCKET_PRIVATE_H_
9 #define PPAPI_C_PRIVATE_PPB_UDP_SOCKET_PRIVATE_H_ 9 #define PPAPI_C_PRIVATE_PPB_UDP_SOCKET_PRIVATE_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 16 matching lines...) Expand all
33 * @{ 33 * @{
34 */ 34 */
35 typedef enum { 35 typedef enum {
36 /* Allow the socket to share the local address to which socket will 36 /* Allow the socket to share the local address to which socket will
37 * be bound with other processes. Value's type should be 37 * be bound with other processes. Value's type should be
38 * PP_VARTYPE_BOOL. */ 38 * PP_VARTYPE_BOOL. */
39 PP_UDPSOCKETFEATURE_PRIVATE_ADDRESS_REUSE = 0, 39 PP_UDPSOCKETFEATURE_PRIVATE_ADDRESS_REUSE = 0,
40 /* Allow sending and receiving packets sent to and from broadcast 40 /* Allow sending and receiving packets sent to and from broadcast
41 * addresses. Value's type should be PP_VARTYPE_BOOL. */ 41 * addresses. Value's type should be PP_VARTYPE_BOOL. */
42 PP_UDPSOCKETFEATURE_PRIVATE_BROADCAST = 1, 42 PP_UDPSOCKETFEATURE_PRIVATE_BROADCAST = 1,
43 /* Whether multicast packets sent from the host to the multicast group should
44 * be looped back to the host or not. Value's type should be PP_VARTYPE_BOOL.
45 */
46 PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_LOOP = 2,
47 /* Set time-to-live for multicast packets, from 0 to 255. Value's type should
48 * be PP_VARTYPE_INT32. */
49 PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_TTL = 3,
50 /* Set network interface from which the multicast packets will be sent and
51 * received. Value's type should be PP_VARTYPE_INT32. */
52 PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_IF = 4,
53 /* Join a multicast group and start receiving packets. Value's type should be
54 * PP_VARTYPE_RESOURCE. */
55 PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_JOIN = 5,
56 /* Leave a multicast group previously joined. Value's type should be
57 * PP_VARTYPE_RESOURCE. */
58 PP_UDPSOCKETFEATURE_PRIVATE_MULTICAST_LEAVE = 6,
43 /* Special value for counting the number of available 59 /* Special value for counting the number of available
44 * features. Should not be passed to SetSocketFeature(). */ 60 * features. Should not be passed to SetSocketFeature(). */
45 PP_UDPSOCKETFEATURE_PRIVATE_COUNT = 2 61 PP_UDPSOCKETFEATURE_PRIVATE_COUNT = 7
46 } PP_UDPSocketFeature_Private; 62 } PP_UDPSocketFeature_Private;
47 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_UDPSocketFeature_Private, 4); 63 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_UDPSocketFeature_Private, 4);
48 /** 64 /**
49 * @} 65 * @}
50 */ 66 */
51 67
52 /** 68 /**
53 * @addtogroup Interfaces 69 * @addtogroup Interfaces
54 * @{ 70 * @{
55 */ 71 */
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 const struct PP_NetAddress_Private* addr, 169 const struct PP_NetAddress_Private* addr,
154 struct PP_CompletionCallback callback); 170 struct PP_CompletionCallback callback);
155 void (*Close)(PP_Resource udp_socket); 171 void (*Close)(PP_Resource udp_socket);
156 }; 172 };
157 /** 173 /**
158 * @} 174 * @}
159 */ 175 */
160 176
161 #endif /* PPAPI_C_PRIVATE_PPB_UDP_SOCKET_PRIVATE_H_ */ 177 #endif /* PPAPI_C_PRIVATE_PPB_UDP_SOCKET_PRIVATE_H_ */
162 178
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698