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_socket_win.h" | 5 #include "net/udp/udp_socket_win.h" |
6 | 6 |
7 #include <mstcpip.h> | 7 #include <mstcpip.h> |
8 | 8 |
9 #include "base/bind.h" | |
eroman
2012/06/12 05:17:26
Is this used?
mmenke
2012/06/12 14:52:36
Nope. Removed.
| |
9 #include "base/eintr_wrapper.h" | 10 #include "base/eintr_wrapper.h" |
10 #include "base/logging.h" | 11 #include "base/logging.h" |
11 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
12 #include "base/metrics/stats_counters.h" | 13 #include "base/metrics/stats_counters.h" |
13 #include "base/rand_util.h" | 14 #include "base/rand_util.h" |
14 #include "net/base/address_list_net_log_param.h" | |
15 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
16 #include "net/base/ip_endpoint.h" | 16 #include "net/base/ip_endpoint.h" |
17 #include "net/base/net_errors.h" | 17 #include "net/base/net_errors.h" |
18 #include "net/base/net_log.h" | 18 #include "net/base/net_log.h" |
19 #include "net/base/net_util.h" | 19 #include "net/base/net_util.h" |
20 #include "net/base/winsock_init.h" | 20 #include "net/base/winsock_init.h" |
21 #include "net/base/winsock_util.h" | 21 #include "net/base/winsock_util.h" |
22 #include "net/udp/udp_data_transfer_param.h" | 22 #include "net/udp/udp_data_transfer_param.h" |
23 | 23 |
24 namespace { | 24 namespace { |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
461 return DoBind(IPEndPoint(ip, 0)); | 461 return DoBind(IPEndPoint(ip, 0)); |
462 } | 462 } |
463 | 463 |
464 bool UDPSocketWin::ReceiveAddressToIPEndpoint(IPEndPoint* address) const { | 464 bool UDPSocketWin::ReceiveAddressToIPEndpoint(IPEndPoint* address) const { |
465 const struct sockaddr* addr = | 465 const struct sockaddr* addr = |
466 reinterpret_cast<const struct sockaddr*>(&recv_addr_storage_); | 466 reinterpret_cast<const struct sockaddr*>(&recv_addr_storage_); |
467 return address->FromSockAddr(addr, recv_addr_len_); | 467 return address->FromSockAddr(addr, recv_addr_len_); |
468 } | 468 } |
469 | 469 |
470 } // namespace net | 470 } // namespace net |
OLD | NEW |