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

Unified Diff: net/udp/datagram_server_socket.h

Issue 99923004: Add support of IP_MULTICAST_IF in UDP sockets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « net/dns/mock_mdns_socket_factory.h ('k') | net/udp/udp_server_socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/datagram_server_socket.h
diff --git a/net/udp/datagram_server_socket.h b/net/udp/datagram_server_socket.h
index 0561d8a6c7d90db8e4b63aa5ce54e2dea2e027d8..ed5ab7a7c4faadee0b133f13c974663dfdab6422 100644
--- a/net/udp/datagram_server_socket.h
+++ b/net/udp/datagram_server_socket.h
@@ -80,6 +80,12 @@ class NET_EXPORT DatagramServerSocket : public DatagramSocket {
// Returns a network error code.
virtual int LeaveGroup(const IPAddressNumber& group_address) const = 0;
+ // Set interface to use for multicast. If |interface_index| set to 0, default
+ // interface is used.
+ // Should be called before Bind().
+ // Returns a network error code.
+ virtual int SetMulticastInterface(uint32 interface_index) = 0;
+
// Set the time-to-live option for UDP packets sent to the multicast
// group address. The default value of this option is 1.
// Cannot be negative or more than 255.
« no previous file with comments | « net/dns/mock_mdns_socket_factory.h ('k') | net/udp/udp_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698