| 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/socket/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 { |
| 11 | 11 |
| 12 UDPServerSocket::UDPServerSocket(net::NetLog* net_log, | 12 UDPServerSocket::UDPServerSocket(net::NetLog* net_log, |
| 13 const net::NetLogSource& source) | 13 const net::NetLogSource& source) |
| 14 : socket_(DatagramSocket::DEFAULT_BIND, RandIntCallback(), net_log, source), | 14 : socket_(DatagramSocket::DEFAULT_BIND, RandIntCallback(), net_log, source), |
| 15 allow_address_reuse_(false), | 15 allow_address_reuse_(false), |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 socket_.DetachFromThread(); | 120 socket_.DetachFromThread(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void UDPServerSocket::UseNonBlockingIO() { | 123 void UDPServerSocket::UseNonBlockingIO() { |
| 124 #if defined(OS_WIN) | 124 #if defined(OS_WIN) |
| 125 socket_.UseNonBlockingIO(); | 125 socket_.UseNonBlockingIO(); |
| 126 #endif | 126 #endif |
| 127 } | 127 } |
| 128 | 128 |
| 129 } // namespace net | 129 } // namespace net |
| OLD | NEW |