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