| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/quic/quic_socket_address_coder.h" | 5 #include "net/quic/core/quic_socket_address_coder.h" |
| 6 | 6 |
| 7 #include "net/base/ip_address.h" | 7 #include "net/base/ip_address.h" |
| 8 #include "net/base/sys_addrinfo.h" | 8 #include "net/base/sys_addrinfo.h" |
| 9 | 9 |
| 10 using std::string; | 10 using std::string; |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 if (length != sizeof(port)) { | 80 if (length != sizeof(port)) { |
| 81 return false; | 81 return false; |
| 82 } | 82 } |
| 83 memcpy(&port, data, length); | 83 memcpy(&port, data, length); |
| 84 | 84 |
| 85 address_ = IPEndPoint(IPAddress(ip), port); | 85 address_ = IPEndPoint(IPAddress(ip), port); |
| 86 return true; | 86 return true; |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace net | 89 } // namespace net |
| OLD | NEW |