Index: net/udp/udp_socket_win.h |
diff --git a/net/udp/udp_socket_win.h b/net/udp/udp_socket_win.h |
index ce17050583efd9e307418940cff034242ad4e473..000fe8ccff4e7c6b7e8d9dfbbbadb615f76d943f 100644 |
--- a/net/udp/udp_socket_win.h |
+++ b/net/udp/udp_socket_win.h |
@@ -7,6 +7,7 @@ |
#include <winsock2.h> |
+#include "base/hash_tables.h" |
#include "base/memory/ref_counted.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/threading/non_thread_safe.h" |
@@ -115,6 +116,14 @@ class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe) { |
// called before Bind(). |
void AllowBroadcast(); |
+ int JoinGroup(const net::IPAddressNumber& group_address) const; |
scheib
2013/04/02 18:25:17
Comment these member functions.
Bei Zhang
2013/04/05 00:38:59
Done.
|
+ |
+ int LeaveGroup(const net::IPAddressNumber& group_address) const; |
+ |
+ int SetMulticastTimeToLive(int timeToLive); |
+ |
+ int SetMulticastLoopbackMode(bool loopback); |
+ |
private: |
enum SocketOptions { |
SOCKET_OPTION_REUSE_ADDRESS = 1 << 0, |
@@ -160,6 +169,7 @@ class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe) { |
bool ReceiveAddressToIPEndpoint(IPEndPoint* address) const; |
SOCKET socket_; |
+ int sock_addr_family_; |
// Bitwise-or'd combination of SocketOptions. Specifies the set of |
// options that should be applied to |socket_| before Bind(). |