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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UDP_SOCKET_WIN_H_ 5 #ifndef NET_UDP_UDP_SOCKET_WIN_H_
6 #define NET_UDP_UDP_SOCKET_WIN_H_ 6 #define NET_UDP_UDP_SOCKET_WIN_H_
7 7
8 #include <qos2.h> 8 #include <qos2.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <winsock2.h> 10 #include <winsock2.h>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const CompletionCallback& callback); 117 const CompletionCallback& callback);
118 118
119 // Sets the receive buffer size (in bytes) for the socket. 119 // Sets the receive buffer size (in bytes) for the socket.
120 // Returns a net error code. 120 // Returns a net error code.
121 int SetReceiveBufferSize(int32_t size); 121 int SetReceiveBufferSize(int32_t size);
122 122
123 // Sets the send buffer size (in bytes) for the socket. 123 // Sets the send buffer size (in bytes) for the socket.
124 // Returns a net error code. 124 // Returns a net error code.
125 int SetSendBufferSize(int32_t size); 125 int SetSendBufferSize(int32_t size);
126 126
127 // Requests that packets sent by this socket not be fragment, either locally
128 // by the host, or by routers (via the DF bit in the IPv4 packet header).
129 // May not be supported by all platforms. Returns a return a network error
130 // code if there was a problem, but the socket will still be usable. Can not
131 // return ERR_IO_PENDING.
132 int SetDoNotFragment();
133
127 // Returns true if the socket is already connected or bound. 134 // Returns true if the socket is already connected or bound.
128 bool is_connected() const { return is_connected_; } 135 bool is_connected() const { return is_connected_; }
129 136
130 const BoundNetLog& NetLog() const { return net_log_; } 137 const BoundNetLog& NetLog() const { return net_log_; }
131 138
132 // Sets corresponding flags in |socket_options_| to allow the socket 139 // Sets corresponding flags in |socket_options_| to allow the socket
133 // to share the local address to which the socket will be bound with 140 // to share the local address to which the socket will be bound with
134 // other processes. Should be called between Open() and Bind(). 141 // other processes. Should be called between Open() and Bind().
135 // Returns a net error code. 142 // Returns a net error code.
136 int AllowAddressReuse(); 143 int AllowAddressReuse();
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 SetFlowFn set_flow_func_; 379 SetFlowFn set_flow_func_;
373 380
374 FRIEND_TEST_ALL_PREFIXES(UDPSocketTest, SetDSCPFake); 381 FRIEND_TEST_ALL_PREFIXES(UDPSocketTest, SetDSCPFake);
375 DISALLOW_COPY_AND_ASSIGN(QwaveAPI); 382 DISALLOW_COPY_AND_ASSIGN(QwaveAPI);
376 }; 383 };
377 384
378 385
379 } // namespace net 386 } // namespace net
380 387
381 #endif // NET_UDP_UDP_SOCKET_WIN_H_ 388 #endif // NET_UDP_UDP_SOCKET_WIN_H_
OLDNEW
« 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