| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_UDP_DATAGRAM_SERVER_SOCKET_H_ | 5 #ifndef NET_UDP_DATAGRAM_SERVER_SOCKET_H_ |
| 6 #define NET_UDP_DATAGRAM_SERVER_SOCKET_H_ | 6 #define NET_UDP_DATAGRAM_SERVER_SOCKET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "net/base/completion_callback.h" | 9 #include "net/base/completion_callback.h" |
| 10 #include "net/udp/datagram_socket.h" | 10 #include "net/udp/datagram_socket.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual int SendTo(IOBuffer* buf, | 53 virtual int SendTo(IOBuffer* buf, |
| 54 int buf_len, | 54 int buf_len, |
| 55 const IPEndPoint& address, | 55 const IPEndPoint& address, |
| 56 const CompletionCallback& callback) = 0; | 56 const CompletionCallback& callback) = 0; |
| 57 | 57 |
| 58 // Set the receive buffer size (in bytes) for the socket. | 58 // Set the receive buffer size (in bytes) for the socket. |
| 59 virtual bool SetReceiveBufferSize(int32 size) = 0; | 59 virtual bool SetReceiveBufferSize(int32 size) = 0; |
| 60 | 60 |
| 61 // Set the send buffer size (in bytes) for the socket. | 61 // Set the send buffer size (in bytes) for the socket. |
| 62 virtual bool SetSendBufferSize(int32 size) = 0; | 62 virtual bool SetSendBufferSize(int32 size) = 0; |
| 63 |
| 64 // Makes the socket ready for broadcasting. |
| 65 virtual void AllowBroadcast() = 0; |
| 63 }; | 66 }; |
| 64 | 67 |
| 65 } // namespace net | 68 } // namespace net |
| 66 | 69 |
| 67 #endif // NET_UDP_DATAGRAM_SERVER_SOCKET_H_ | 70 #endif // NET_UDP_DATAGRAM_SERVER_SOCKET_H_ |
| OLD | NEW |