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

Unified Diff: ppapi/c/private/ppb_udp_socket_private.h

Issue 9212047: Add GetBoundAddress to PPB_UDPSocket_Private (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: a few small changes after self review 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/c/private/ppb_udp_socket_private.h
diff --git a/ppapi/c/private/ppb_udp_socket_private.h b/ppapi/c/private/ppb_udp_socket_private.h
index 78722e0998b558cdad81901ebb9c4f7361594d9e..bbdbc1e6ba44f0036f877941dc8b8d184ec84e6a 100644
--- a/ppapi/c/private/ppb_udp_socket_private.h
+++ b/ppapi/c/private/ppb_udp_socket_private.h
@@ -38,7 +38,10 @@ struct PPB_UDPSocket_Private_0_2 {
* Determines if a given resource is a UDP socket.
*/
PP_Bool (*IsUDPSocket)(PP_Resource resource_id);
- /* Creates a socket and binds to the address given by |addr|. */
+ /* Creates a socket and binds to the address given by |addr|.
+ * Returns the port number that the socket is bound to on
+ * success, 0 on failure
+ */
int32_t (*Bind)(PP_Resource udp_socket,
const struct PP_NetAddress_Private* addr,
struct PP_CompletionCallback callback);

Powered by Google App Engine
This is Rietveld 408576698