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

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 license headers. 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..206f2f56e97461e9161e2b53a68f74ca0ccd2634 100644
--- a/net/udp/datagram_server_socket.h
+++ b/net/udp/datagram_server_socket.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -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;
+
+ // Allow the socket to share the local address to which socket will
+ // be bound with other processes. Should be called before Listen().
+ virtual void AllowAddressReuse() = 0;
+
+ // Allow sending and receiving packets sent to and from broadcast
+ // addresses. Should be called before Listen().
+ virtual void AllowBroadcast() = 0;
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698