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

Unified Diff: net/udp/datagram_server_socket.h

Issue 10739002: Added broadcasting feature to UDP server sockets. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed Win code. Created 8 years, 5 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
Index: net/udp/datagram_server_socket.h
diff --git a/net/udp/datagram_server_socket.h b/net/udp/datagram_server_socket.h
index 759b0e42709a581bb1b6c27a8290bc2f9a41b3c5..698b1bd8a506f9ef3c73c26056caf7c491d4362f 100644
--- a/net/udp/datagram_server_socket.h
+++ b/net/udp/datagram_server_socket.h
@@ -59,6 +59,14 @@ class NET_EXPORT DatagramServerSocket : public DatagramSocket {
// Set the send buffer size (in bytes) for the socket.
virtual bool SetSendBufferSize(int32 size) = 0;
+
+ // Allows the socket to share the local address to which socket will
+ // be bound with other sockets. Should be called before Listen.
Sergey Ulanov 2012/07/12 18:15:37 nit: s/Listen/Listen()/
wtc 2012/07/12 23:49:47 It would be nice to point out that this is often a
ygorshenin1 2012/07/16 10:29:44 Done.
ygorshenin1 2012/07/16 10:29:44 Done.
+ virtual void AllowAddressReuse() = 0;
+
+ // Makes the socket ready for broadcasting. Should be called before
Sergey Ulanov 2012/07/12 18:15:37 This comment is not very clear. Suggest "Allow sen
ygorshenin1 2012/07/16 10:29:44 Done.
+ // Listen.
Sergey Ulanov 2012/07/12 18:15:37 nit: s/Listen/Listen()/
ygorshenin1 2012/07/16 10:29:44 Done.
+ virtual void AllowBroadcast() = 0;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698