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

Unified Diff: ppapi/cpp/private/net_address_private.h

Issue 9235035: Add getter methods for sockaddr. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Fixing errors found by review system. Created 8 years, 11 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
Index: ppapi/cpp/private/net_address_private.h
===================================================================
--- ppapi/cpp/private/net_address_private.h (revision 119128)
+++ ppapi/cpp/private/net_address_private.h (working copy)
@@ -28,6 +28,10 @@
uint16_t port,
PP_NetAddress_Private* addr_out);
static void GetAnyAddress(bool is_ipv6, PP_NetAddress_Private* addr);
+ static uint16_t GetFamily(const PP_NetAddress_Private* addr);
+ static uint16_t GetPort(const PP_NetAddress_Private* addr);
+ static bool GetAddress(const PP_NetAddress_Private* addr, void* address,
+ uint16_t address_size);
};
} // namespace pp

Powered by Google App Engine
This is Rietveld 408576698