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

Unified Diff: ppapi/cpp/udp_socket.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: Add missing declaration to interfaces_ppb_public_dev_channel.h, bots are happy now Created 5 years, 9 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/udp_socket.h
diff --git a/ppapi/cpp/udp_socket.h b/ppapi/cpp/udp_socket.h
index 707c62102a17318c45c44b2672f8697b33701c9f..69e906ff20919ddb226029dcf80792a89cad18c4 100644
--- a/ppapi/cpp/udp_socket.h
+++ b/ppapi/cpp/udp_socket.h
@@ -156,6 +156,30 @@ class UDPSocket : public Resource {
int32_t SetOption(PP_UDPSocket_Option name,
const Var& value,
const CompletionCallback& callback);
+
+ /// Joins the multicast group with address specified by <code>group</code>
+ /// parameter, which is expected to be a <code>NetAddress</code> object.
+ ///
+ /// @param[in] group A <code>NetAddress</code> corresponding to the network
+ /// address of the multicast group.
+ /// @param[in] callback A <code>CompletionCallback</code> to be called upon
+ /// completion.
+ ///
+ /// @return An int32_t containing an error code from <code>pp_errors.h</code>.
+ int32_t JoinGroup(const NetAddress& group,
+ const CompletionCallback callback);
+
+ /// Leaves the multicast group with address specified by <code>group</code>
+ /// parameter, which is expected to be a <code>NetAddress</code> object.
+ ///
+ /// @param[in] group A <code>NetAddress</code> corresponding to the network
+ /// address of the multicast group.
+ /// @param[in] callback A <code>CompletionCallback</code> to be called upon
+ /// completion.
+ ///
+ /// @return An int32_t containing an error code from <code>pp_errors.h</code>.
+ int32_t LeaveGroup(const NetAddress& group,
+ const CompletionCallback callback);
};
} // namespace pp

Powered by Google App Engine
This is Rietveld 408576698