Index: net/udp/udp_socket_win.h |
diff --git a/net/udp/udp_socket_win.h b/net/udp/udp_socket_win.h |
index 142c692283e23c7c33f6066b2c3e62b1e7b27054..90b3e9bab8a3b8a7674f081d8c20e613499a335f 100644 |
--- a/net/udp/udp_socket_win.h |
+++ b/net/udp/udp_socket_win.h |
@@ -130,6 +130,10 @@ class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe) { |
// Return a network error code. |
int LeaveGroup(const IPAddressNumber& group_address) const; |
+ // Set interface to listen and send multicast. If |interface_index| set to 0, |
+ // default interface is used. |
+ int SetMulticastInterface(uint32 interface_index); |
szym
2013/12/04 00:52:15
// Should be called before Bind().
// Returns a ne
Vitaly Buka (NO REVIEWS)
2013/12/04 09:39:36
Done.
|
+ |
// 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. |
@@ -207,6 +211,9 @@ class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe) { |
// options that should be applied to |socket_| before Bind(). |
int socket_options_; |
+ // Multicast interface. |
+ uint32 multicast_interface_; |
+ |
// Multicast socket options cached for SetSocketOption. |
// Cannot be used after Bind(). |
int multicast_time_to_live_; |