Index: net/udp/datagram_server_socket.h |
diff --git a/net/udp/datagram_server_socket.h b/net/udp/datagram_server_socket.h |
index 67120fee8806cada8336f1fe054ef080e81c7418..f2016c0e0d04916d4e14926c54360a3b3c2e011a 100644 |
--- a/net/udp/datagram_server_socket.h |
+++ b/net/udp/datagram_server_socket.h |
@@ -69,33 +69,29 @@ class NET_EXPORT DatagramServerSocket : public DatagramSocket { |
// Should be called before Listen(). |
virtual void AllowBroadcast() = 0; |
- // Join the multicast group. |
- // |group_address| is the group address to join, could be either |
- // an IPv4 or IPv6 address. |
- // Return a network error code. |
+ // Join the multicast group with address |group_address|. |
+ // Returns a network error code. |
virtual int JoinGroup(const IPAddressNumber& group_address) const = 0; |
- // Leave the multicast group. |
- // |group_address| is the group address to leave, could be either |
- // an IPv4 or IPv6 address. If the socket hasn't joined the group, |
- // it will be ignored. |
+ // Leave the multicast group with address |group_address|. |
+ // If the socket hasn't joined the group, it will be ignored. |
// It's optional to leave the multicast group before destroying |
// the socket. It will be done by the OS. |
- // Return a network error code. |
+ // Returns a network error code. |
virtual int LeaveGroup(const IPAddressNumber& group_address) const = 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. |
// Should be called before Bind(). |
- // Return a network error code. |
+ // Returns a network error code. |
virtual int SetMulticastTimeToLive(int time_to_live) = 0; |
// Set the loopback flag for UDP socket. If this flag is true, the host |
// will receive packets sent to the joined group from itself. |
// The default value of this option is true. |
// Should be called before Bind(). |
- // Return a network error code. |
+ // Returns a network error code. |
virtual int SetMulticastLoopbackMode(bool loopback) = 0; |
}; |