OLD | NEW |
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 Loading... |
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 |
OLD | NEW |