| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 } | 77 } |
| 78 | 78 |
| 79 int UDPServerSocket::GetPeerAddress(IPEndPoint* address) const { | 79 int UDPServerSocket::GetPeerAddress(IPEndPoint* address) const { |
| 80 return socket_.GetPeerAddress(address); | 80 return socket_.GetPeerAddress(address); |
| 81 } | 81 } |
| 82 | 82 |
| 83 int UDPServerSocket::GetLocalAddress(IPEndPoint* address) const { | 83 int UDPServerSocket::GetLocalAddress(IPEndPoint* address) const { |
| 84 return socket_.GetLocalAddress(address); | 84 return socket_.GetLocalAddress(address); |
| 85 } | 85 } |
| 86 | 86 |
| 87 const BoundNetLog& UDPServerSocket::NetLog() const { | 87 const NetLogWithSource& UDPServerSocket::NetLog() const { |
| 88 return socket_.NetLog(); | 88 return socket_.NetLog(); |
| 89 } | 89 } |
| 90 | 90 |
| 91 void UDPServerSocket::AllowAddressReuse() { | 91 void UDPServerSocket::AllowAddressReuse() { |
| 92 allow_address_reuse_ = true; | 92 allow_address_reuse_ = true; |
| 93 } | 93 } |
| 94 | 94 |
| 95 void UDPServerSocket::AllowBroadcast() { | 95 void UDPServerSocket::AllowBroadcast() { |
| 96 allow_broadcast_ = true; | 96 allow_broadcast_ = true; |
| 97 } | 97 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 124 socket_.DetachFromThread(); | 124 socket_.DetachFromThread(); |
| 125 } | 125 } |
| 126 | 126 |
| 127 void UDPServerSocket::UseNonBlockingIO() { | 127 void UDPServerSocket::UseNonBlockingIO() { |
| 128 #if defined(OS_WIN) | 128 #if defined(OS_WIN) |
| 129 socket_.UseNonBlockingIO(); | 129 socket_.UseNonBlockingIO(); |
| 130 #endif | 130 #endif |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace net | 133 } // namespace net |
| OLD | NEW |