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

Side by Side Diff: net/socket/socket.h

Issue 2235973002: Add a SetDoNotFragment() method to DatagramSocket, and call this for (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Blimp Created 4 years, 4 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 unified diff | Download patch
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698