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

Side by Side Diff: net/udp/udp_server_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_server_socket.h ('k') | net/udp/udp_socket_posix.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) 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 #include "net/udp/udp_server_socket.h" 5 #include "net/udp/udp_server_socket.h"
6 6
7 #include "net/base/net_errors.h" 7 #include "net/base/net_errors.h"
8 #include "net/base/rand_callback.h" 8 #include "net/base/rand_callback.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 } 61 }
62 62
63 int UDPServerSocket::SetReceiveBufferSize(int32_t size) { 63 int UDPServerSocket::SetReceiveBufferSize(int32_t size) {
64 return socket_.SetReceiveBufferSize(size); 64 return socket_.SetReceiveBufferSize(size);
65 } 65 }
66 66
67 int UDPServerSocket::SetSendBufferSize(int32_t size) { 67 int UDPServerSocket::SetSendBufferSize(int32_t size) {
68 return socket_.SetSendBufferSize(size); 68 return socket_.SetSendBufferSize(size);
69 } 69 }
70 70
71 int UDPServerSocket::SetDoNotFragment() {
72 return socket_.SetDoNotFragment();
73 }
74
71 void UDPServerSocket::Close() { 75 void UDPServerSocket::Close() {
72 socket_.Close(); 76 socket_.Close();
73 } 77 }
74 78
75 int UDPServerSocket::GetPeerAddress(IPEndPoint* address) const { 79 int UDPServerSocket::GetPeerAddress(IPEndPoint* address) const {
76 return socket_.GetPeerAddress(address); 80 return socket_.GetPeerAddress(address);
77 } 81 }
78 82
79 int UDPServerSocket::GetLocalAddress(IPEndPoint* address) const { 83 int UDPServerSocket::GetLocalAddress(IPEndPoint* address) const {
80 return socket_.GetLocalAddress(address); 84 return socket_.GetLocalAddress(address);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 socket_.DetachFromThread(); 124 socket_.DetachFromThread();
121 } 125 }
122 126
123 void UDPServerSocket::UseNonBlockingIO() { 127 void UDPServerSocket::UseNonBlockingIO() {
124 #if defined(OS_WIN) 128 #if defined(OS_WIN)
125 socket_.UseNonBlockingIO(); 129 socket_.UseNonBlockingIO();
126 #endif 130 #endif
127 } 131 }
128 132
129 } // namespace net 133 } // namespace net
OLDNEW
« no previous file with comments | « net/udp/udp_server_socket.h ('k') | net/udp/udp_socket_posix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698