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

Unified Diff: ppapi/api/private/ppb_net_address_private.idl

Issue 9307115: PPB_NetAddress_Private: add getter methods for sockaddr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 10 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 | « chrome/test/ui/ppapi_uitest.cc ('k') | ppapi/c/private/ppb_net_address_private.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/private/ppb_net_address_private.idl
diff --git a/ppapi/api/private/ppb_net_address_private.idl b/ppapi/api/private/ppb_net_address_private.idl
index 97bc59ff1624b748acbaa170db58965096ec83b7..ecf6416be5d8502a843b26026b1b27be04250c46 100644
--- a/ppapi/api/private/ppb_net_address_private.idl
+++ b/ppapi/api/private/ppb_net_address_private.idl
@@ -8,7 +8,8 @@
*/
label Chrome {
- M17 = 0.1
+ M17 = 0.1,
+ M18 = 1.0
};
/**
@@ -58,4 +59,28 @@ interface PPB_NetAddress_Private {
*/
void GetAnyAddress([in] PP_Bool is_ipv6,
[out] PP_NetAddress_Private addr);
+
+ /**
+ * Gets the address family.
+ */
+ [version=1.0]
+ uint16_t GetFamily([in] PP_NetAddress_Private addr);
+
+ /**
+ * Gets the port. The port is returned in host byte order.
+ */
+ [version=1.0]
+ uint16_t GetPort([in] PP_NetAddress_Private addr);
+
+ /**
+ * Gets the address. The output, address, must be large enough for the
+ * current socket family. The output will be the binary representation of an
+ * address for the current socket family. For IPv4 and IPv6 the address is in
+ * network byte order. PP_TRUE is returned if the address was successfully
+ * retrieved.
+ */
+ [version=1.0]
+ PP_Bool GetAddress([in] PP_NetAddress_Private addr,
+ [out] mem_t address,
+ [in] uint16_t address_size);
};
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | ppapi/c/private/ppb_net_address_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698