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

Side by Side Diff: net/udp/udp_client_socket.cc

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_client_socket.h ('k') | net/udp/udp_server_socket.h » ('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) 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 #include "net/udp/udp_client_socket.h" 5 #include "net/udp/udp_client_socket.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/log/net_log.h" 8 #include "net/log/net_log.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 int UDPClientSocket::SetReceiveBufferSize(int32_t size) { 104 int UDPClientSocket::SetReceiveBufferSize(int32_t size) {
105 return socket_.SetReceiveBufferSize(size); 105 return socket_.SetReceiveBufferSize(size);
106 } 106 }
107 107
108 int UDPClientSocket::SetSendBufferSize(int32_t size) { 108 int UDPClientSocket::SetSendBufferSize(int32_t size) {
109 return socket_.SetSendBufferSize(size); 109 return socket_.SetSendBufferSize(size);
110 } 110 }
111 111
112 int UDPClientSocket::SetDoNotFragment() {
113 return socket_.SetDoNotFragment();
114 }
115
112 const BoundNetLog& UDPClientSocket::NetLog() const { 116 const BoundNetLog& UDPClientSocket::NetLog() const {
113 return socket_.NetLog(); 117 return socket_.NetLog();
114 } 118 }
115 119
116 void UDPClientSocket::UseNonBlockingIO() { 120 void UDPClientSocket::UseNonBlockingIO() {
117 #if defined(OS_WIN) 121 #if defined(OS_WIN)
118 socket_.UseNonBlockingIO(); 122 socket_.UseNonBlockingIO();
119 #endif 123 #endif
120 } 124 }
121 125
122 } // namespace net 126 } // namespace net
OLDNEW
« no previous file with comments | « net/udp/udp_client_socket.h ('k') | net/udp/udp_server_socket.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698