| 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_SOCKET_SOCKET_H_ | 5 #ifndef NET_SOCKET_SOCKET_H_ |
| 6 #define NET_SOCKET_SOCKET_H_ | 6 #define NET_SOCKET_SOCKET_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 50 |
| 51 // Set the receive buffer size (in bytes) for the socket. | 51 // Set the receive buffer size (in bytes) for the socket. |
| 52 // Note: changing this value can affect the TCP window size on some platforms. | 52 // Note: changing this value can affect the TCP window size on some platforms. |
| 53 // Returns a net error code. | 53 // Returns a net error code. |
| 54 virtual int SetReceiveBufferSize(int32_t size) = 0; | 54 virtual int SetReceiveBufferSize(int32_t size) = 0; |
| 55 | 55 |
| 56 // Set the send buffer size (in bytes) for the socket. | 56 // Set the send buffer size (in bytes) for the socket. |
| 57 // Note: changing this value can affect the TCP window size on some platforms. | 57 // Note: changing this value can affect the TCP window size on some platforms. |
| 58 // Returns a net error code. | 58 // Returns a net error code. |
| 59 virtual int SetSendBufferSize(int32_t size) = 0; | 59 virtual int SetSendBufferSize(int32_t size) = 0; |
| 60 |
| 61 // Configures the socket to set or clear the DF (Do not Fragment) bit on |
| 62 // packets, which prevents routers from fragmenting them. |
| 63 virtual int SetDoNotFragment(bool do_not_fragment) = 0; |
| 60 }; | 64 }; |
| 61 | 65 |
| 62 } // namespace net | 66 } // namespace net |
| 63 | 67 |
| 64 #endif // NET_SOCKET_SOCKET_H_ | 68 #endif // NET_SOCKET_SOCKET_H_ |
| OLD | NEW |