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

Unified Diff: net/udp/datagram_server_socket.h

Issue 15733008: Multicast DNS implementation (initial) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mdns_implementation2
Patch Set: Created 7 years, 6 months 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
« net/dns/mdns_client_impl.cc ('K') | « net/net.gyp ('k') | no next file » | 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 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;
};
« net/dns/mdns_client_impl.cc ('K') | « net/net.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698