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

Side by Side Diff: net/udp/datagram_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: progress 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_UDP_DATAGRAM_SOCKET_H_ 5 #ifndef NET_UDP_DATAGRAM_SOCKET_H_
6 #define NET_UDP_DATAGRAM_SOCKET_H_ 6 #define NET_UDP_DATAGRAM_SOCKET_H_
7 7
8 #include "net/base/net_export.h" 8 #include "net/base/net_export.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 16 matching lines...) Expand all
27 // Close the socket. 27 // Close the socket.
28 virtual void Close() = 0; 28 virtual void Close() = 0;
29 29
30 // Copy the remote udp address into |address| and return a network error code. 30 // Copy the remote udp address into |address| and return a network error code.
31 virtual int GetPeerAddress(IPEndPoint* address) const = 0; 31 virtual int GetPeerAddress(IPEndPoint* address) const = 0;
32 32
33 // Copy the local udp address into |address| and return a network error code. 33 // Copy the local udp address into |address| and return a network error code.
34 // (similar to getsockname) 34 // (similar to getsockname)
35 virtual int GetLocalAddress(IPEndPoint* address) const = 0; 35 virtual int GetLocalAddress(IPEndPoint* address) const = 0;
36 36
37 // Configures the socket to set the DF (Do not Fragment) bit on packets,
38 // which prevents routers from fragmenting them.
Jeremy Dorfman 2016/08/12 17:23:41 Perhaps worth noting that this may not be availabl
Ryan Hamilton 2016/08/12 17:40:52 Done.
39 virtual int SetDoNotFragment() = 0;
40
37 // Gets the NetLog for this socket. 41 // Gets the NetLog for this socket.
38 virtual const BoundNetLog& NetLog() const = 0; 42 virtual const BoundNetLog& NetLog() const = 0;
39 }; 43 };
40 44
41 } // namespace net 45 } // namespace net
42 46
43 #endif // NET_UDP_DATAGRAM_SOCKET_H_ 47 #endif // NET_UDP_DATAGRAM_SOCKET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698