| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/globals.h" | 5 #include "platform/globals.h" |
| 6 #if defined(TARGET_OS_WINDOWS) | 6 #if defined(TARGET_OS_WINDOWS) |
| 7 | 7 |
| 8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
| 9 #include "bin/eventhandler.h" | 9 #include "bin/eventhandler.h" |
| 10 #include "bin/file.h" | 10 #include "bin/file.h" |
| 11 #include "bin/log.h" | 11 #include "bin/log.h" |
| 12 #include "bin/socket.h" | 12 #include "bin/socket.h" |
| 13 #include "bin/utils.h" |
| 13 | 14 |
| 14 | 15 |
| 15 namespace dart { | 16 namespace dart { |
| 16 namespace bin { | 17 namespace bin { |
| 17 | 18 |
| 18 SocketAddress::SocketAddress(struct addrinfo* addrinfo) { | 19 SocketAddress::SocketAddress(struct addrinfo* addrinfo) { |
| 19 ASSERT(INET6_ADDRSTRLEN >= INET_ADDRSTRLEN); | 20 ASSERT(INET6_ADDRSTRLEN >= INET_ADDRSTRLEN); |
| 20 RawAddr* raw = reinterpret_cast<RawAddr*>(addrinfo->ai_addr); | 21 RawAddr* raw = reinterpret_cast<RawAddr*>(addrinfo->ai_addr); |
| 21 | 22 |
| 22 // Clear the port before calling WSAAddressToString as WSAAddressToString | 23 // Clear the port before calling WSAAddressToString as WSAAddressToString |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 IPPROTO_TCP, | 328 IPPROTO_TCP, |
| 328 TCP_NODELAY, | 329 TCP_NODELAY, |
| 329 reinterpret_cast<char *>(&on), | 330 reinterpret_cast<char *>(&on), |
| 330 sizeof(on)) == 0; | 331 sizeof(on)) == 0; |
| 331 } | 332 } |
| 332 | 333 |
| 333 } // namespace bin | 334 } // namespace bin |
| 334 } // namespace dart | 335 } // namespace dart |
| 335 | 336 |
| 336 #endif // defined(TARGET_OS_WINDOWS) | 337 #endif // defined(TARGET_OS_WINDOWS) |
| OLD | NEW |