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

Unified Diff: net/udp/udp_socket_win.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: Rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/udp/udp_socket_unittest.cc ('k') | net/udp/udp_socket_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/udp/udp_socket_win.h
diff --git a/net/udp/udp_socket_win.h b/net/udp/udp_socket_win.h
index 14b801e36fe4d44e3f807f3464424a95e146656f..c4ef41293d81dd76d473d61f52cb95d9cd909f7a 100644
--- a/net/udp/udp_socket_win.h
+++ b/net/udp/udp_socket_win.h
@@ -124,6 +124,13 @@ class NET_EXPORT UDPSocketWin
// Returns a net error code.
int SetSendBufferSize(int32_t size);
+ // Requests that packets sent by this socket not be fragment, either locally
+ // by the host, or by routers (via the DF bit in the IPv4 packet header).
+ // May not be supported by all platforms. Returns a return a network error
+ // code if there was a problem, but the socket will still be usable. Can not
+ // return ERR_IO_PENDING.
+ int SetDoNotFragment();
+
// Returns true if the socket is already connected or bound.
bool is_connected() const { return is_connected_; }
« no previous file with comments | « net/udp/udp_socket_unittest.cc ('k') | net/udp/udp_socket_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698