Index: net/udp/datagram_server_socket.h |
diff --git a/net/udp/datagram_server_socket.h b/net/udp/datagram_server_socket.h |
index d3796c363281e7e84c5bdeb3549834fdeac240cb..a0e7f917ae509872f17c014be5297497edf5e254 100644 |
--- a/net/udp/datagram_server_socket.h |
+++ b/net/udp/datagram_server_socket.h |
@@ -64,12 +64,18 @@ class NET_EXPORT DatagramServerSocket : public DatagramSocket { |
virtual int SetSendBufferSize(int32 size) = 0; |
// Allow the socket to share the local address to which the socket will |
- // be bound with other processes. Should be called before Listen(). |
- virtual void AllowAddressReuse() = 0; |
+ // be bound with other processes. |
+ virtual int AllowAddressReuse() = 0; |
+ |
+ // Disallow the socket to share the local address to which the socket will |
+ // be bound with other processes. |
+ virtual int DisallowAddressReuse() = 0; |
// Allow sending and receiving packets to and from broadcast addresses. |
- // Should be called before Listen(). |
- virtual void AllowBroadcast() = 0; |
+ virtual int AllowBroadcast() = 0; |
+ |
+ // Disallow sending and receiving packets to and from broadcast addresses. |
+ virtual int DisallowBroadcast() = 0; |
// Join the multicast group with address |group_address|. |
// Returns a network error code. |