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

Unified Diff: ppapi/api/dev/ppb_udp_socket_dev.idl

Issue 16959005: Implement PPB_UDPSocket_Dev: part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months 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
« no previous file with comments | « content/content_browser.gypi ('k') | ppapi/c/dev/ppb_udp_socket_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/ppb_udp_socket_dev.idl
diff --git a/ppapi/api/dev/ppb_udp_socket_dev.idl b/ppapi/api/dev/ppb_udp_socket_dev.idl
index 32ad30a81b21cb64d2aac5a93aa604447ccca020..a4d7d53be8e9c461aa62e2fe869fe52ffe731fb3 100644
--- a/ppapi/api/dev/ppb_udp_socket_dev.idl
+++ b/ppapi/api/dev/ppb_udp_socket_dev.idl
@@ -18,14 +18,17 @@ label Chrome {
enum PP_UDPSocket_Option_Dev {
// Allows the socket to share the local address to which it will be bound with
// other processes. Value's type should be PP_VARTYPE_BOOL.
+ // This option can only be set before calling Bind().
PP_UDPSOCKET_OPTION_ADDRESS_REUSE = 0,
// Allows sending and receiving packets to and from broadcast addresses.
// Value's type should be PP_VARTYPE_BOOL.
+ // This option can only be set before calling Bind().
PP_UDPSOCKET_OPTION_BROADCAST = 1,
// Specifies the total per-socket buffer space reserved for sends. Value's
// type should be PP_VARTYPE_INT32.
+ // This option can only be set after a successful Bind() call.
// Note: This is only treated as a hint for the browser to set the buffer
// size. Even if SetOption() reports that this option has been successfully
// set, the browser doesn't guarantee it will conform to it.
@@ -33,6 +36,7 @@ enum PP_UDPSocket_Option_Dev {
// Specifies the total per-socket buffer space reserved for receives. Value's
// type should be PP_VARTYPE_INT32.
+ // This option can only be set after a successful Bind() call.
// Note: This is only treated as a hint for the browser to set the buffer
// size. Even if SetOption() reports that this option has been successfully
// set, the browser doesn't guarantee it will conform to it.
@@ -93,7 +97,7 @@ interface PPB_UDPSocket_Dev {
void Close([in] PP_Resource udp_socket);
/**
- * Sets a socket option to |udp_socket|. Should be called before Bind().
+ * Sets a socket option on |udp_socket|.
* See the PP_UDPSocket_Option_Dev description for option names, value types
* and allowed values.
* Returns PP_OK on success. Otherwise, returns PP_ERROR_BADRESOURCE (if bad
« no previous file with comments | « content/content_browser.gypi ('k') | ppapi/c/dev/ppb_udp_socket_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698