diff options
Diffstat (limited to 'net/udp/udp_socket_win.h')
-rw-r--r-- | net/udp/udp_socket_win.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/udp/udp_socket_win.h b/net/udp/udp_socket_win.h index f36c19b..62c3e11 100644 --- a/net/udp/udp_socket_win.h +++ b/net/udp/udp_socket_win.h @@ -29,6 +29,8 @@ namespace net { +class IPAddress; + class NET_EXPORT UDPSocketWin : NON_EXPORTED_BASE(public base::NonThreadSafe), NON_EXPORTED_BASE(public base::win::ObjectWatcher::Delegate) { @@ -140,7 +142,7 @@ class NET_EXPORT UDPSocketWin // |group_address| is the group address to join, could be either // an IPv4 or IPv6 address. // Returns a net error code. - int JoinGroup(const IPAddressNumber& group_address) const; + int JoinGroup(const IPAddress& group_address) const; // Leaves the multicast group. // |group_address| is the group address to leave, could be either @@ -149,7 +151,7 @@ class NET_EXPORT UDPSocketWin // It's optional to leave the multicast group before destroying // the socket. It will be done by the OS. // Return a net error code. - int LeaveGroup(const IPAddressNumber& group_address) const; + int LeaveGroup(const IPAddress& group_address) const; // Sets interface to use for multicast. If |interface_index| set to 0, // default interface is used. @@ -245,7 +247,7 @@ class NET_EXPORT UDPSocketWin int SetMulticastOptions(); int DoBind(const IPEndPoint& address); // Binds to a random port on |address|. - int RandomBind(const IPAddressNumber& address); + int RandomBind(const IPAddress& address); SOCKET socket_; int addr_family_; |