Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Issue 14083007: Add new InternetAddress class with a static lookup function (including IPv6 results). (Closed)

Created:
7 years, 8 months ago by Anders Johnsen
Modified:
7 years, 8 months ago
Reviewers:
Søren Gjesse
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add new InternetAddress class with a static lookup function (including IPv6 results). Socket.connect/ServerSocket.bind now accepts IPv6 host names. If a new ServerSocket is connected to an IPv6 interface, it will (if possible) support incoming IPv4 connections as well. BUG= Committed: https://code.google.com/p/dart/source/detail?r=21862

Patch Set 1 #

Total comments: 26

Patch Set 2 : Code and comment cleanup. #

Total comments: 10

Patch Set 3 : cleanup from review. #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : Cleanup macro. #

Patch Set 6 : Add Windows support and update ssl tests to use 'localhost'. #

Total comments: 25

Patch Set 7 : Review update and Mac+Android impl. #

Patch Set 8 : #

Patch Set 9 : Comments and style fixes. #

Patch Set 10 : #

Patch Set 11 : Fix new test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+843 lines, -428 lines) Patch
M runtime/bin/dbg_connection.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -1 line 0 comments Download
M runtime/bin/secure_socket.cc View 1 2 3 4 5 1 chunk +8 lines, -10 lines 0 comments Download
M runtime/bin/socket.h View 1 2 3 4 5 6 7 8 9 4 chunks +67 lines, -5 lines 0 comments Download
M runtime/bin/socket.cc View 1 2 3 4 5 6 5 chunks +66 lines, -17 lines 0 comments Download
M runtime/bin/socket_android.cc View 1 2 3 4 5 6 7 8 chunks +82 lines, -59 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 2 3 4 5 6 7 8 chunks +79 lines, -56 lines 0 comments Download
M runtime/bin/socket_macos.cc View 1 2 3 4 5 6 7 8 9 8 chunks +79 lines, -52 lines 0 comments Download
M runtime/bin/socket_patch.dart View 1 2 3 4 5 6 7 8 8 chunks +108 lines, -49 lines 0 comments Download
M runtime/bin/socket_win.cc View 1 2 3 4 5 7 chunks +82 lines, -65 lines 0 comments Download
M runtime/bin/vmstats_impl.cc View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M sdk/lib/io/http_impl.dart View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/io/secure_socket.dart View 1 2 3 4 5 6 7 8 10 chunks +20 lines, -12 lines 0 comments Download
M sdk/lib/io/socket.dart View 1 2 3 4 5 6 7 8 6 chunks +83 lines, -8 lines 0 comments Download
M tests/standalone/io/http_close_test.dart View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/io/http_compression_test.dart View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/io/http_keep_alive_test.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/http_proxy_test.dart View 1 2 3 4 5 12 chunks +13 lines, -13 lines 0 comments Download
M tests/standalone/io/http_server_early_client_close_test.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/https_client_certificate_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M tests/standalone/io/https_client_exception_test.dart View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M tests/standalone/io/https_server_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M tests/standalone/io/raw_secure_server_closing_test.dart View 1 2 3 4 5 6 5 chunks +4 lines, -5 lines 0 comments Download
M tests/standalone/io/raw_secure_server_socket_test.dart View 1 2 3 4 5 6 7 8 6 chunks +11 lines, -12 lines 0 comments Download
M tests/standalone/io/raw_secure_socket_pause_test.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/raw_secure_socket_test.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/io/secure_client_raw_server_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M tests/standalone/io/secure_client_server_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M tests/standalone/io/secure_multiple_client_server_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M tests/standalone/io/secure_server_client_certificate_test.dart View 1 2 3 4 5 6 4 chunks +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_server_closing_test.dart View 1 2 3 4 5 6 5 chunks +4 lines, -5 lines 0 comments Download
M tests/standalone/io/secure_server_socket_test.dart View 1 2 3 4 5 6 6 chunks +10 lines, -11 lines 0 comments Download
M tests/standalone/io/secure_session_resume_test.dart View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M tests/standalone/io/secure_socket_bad_certificate_test.dart View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -6 lines 0 comments Download
M tests/standalone/io/secure_socket_test.dart View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A tests/standalone/io/socket_ipv6_test.dart View 1 2 3 4 5 6 1 chunk +88 lines, -0 lines 0 comments Download
M tests/standalone/io/socket_upgrade_to_secure_test.dart View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -2 lines 0 comments Download
M tests/standalone/io/web_socket_test.dart View 1 2 3 4 5 6 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Anders Johnsen
Very early version. - No tests - No mac version - No win version - ...
7 years, 8 months ago (2013-04-18 08:18:06 UTC) #1
Søren Gjesse
Initial comments https://codereview.chromium.org/14083007/diff/1/runtime/bin/socket.h File runtime/bin/socket.h (right): https://codereview.chromium.org/14083007/diff/1/runtime/bin/socket.h#newcode44 runtime/bin/socket.h:44: Type type; Make these mempers private with ...
7 years, 8 months ago (2013-04-18 09:07:40 UTC) #2
Anders Johnsen
Thanks a ton for the comments Soeren, much nicer now! PTAL before I start adding ...
7 years, 8 months ago (2013-04-18 12:09:45 UTC) #3
Søren Gjesse
The code looks good now. https://codereview.chromium.org/14083007/diff/8001/runtime/bin/socket.h File runtime/bin/socket.h (right): https://codereview.chromium.org/14083007/diff/8001/runtime/bin/socket.h#newcode46 runtime/bin/socket.h:46: const char* as_string_; How ...
7 years, 8 months ago (2013-04-18 12:59:24 UTC) #4
Anders Johnsen
https://codereview.chromium.org/14083007/diff/8001/runtime/bin/socket.h File runtime/bin/socket.h (right): https://codereview.chromium.org/14083007/diff/8001/runtime/bin/socket.h#newcode46 runtime/bin/socket.h:46: const char* as_string_; On 2013/04/18 12:59:24, Søren Gjesse wrote: ...
7 years, 8 months ago (2013-04-19 09:45:36 UTC) #5
Søren Gjesse
The API and Linux code looks good now. https://codereview.chromium.org/14083007/diff/15001/runtime/bin/socket.h File runtime/bin/socket.h (right): https://codereview.chromium.org/14083007/diff/15001/runtime/bin/socket.h#newcode26 runtime/bin/socket.h:26: #define ...
7 years, 8 months ago (2013-04-19 10:36:06 UTC) #6
Anders Johnsen
PTAL https://codereview.chromium.org/14083007/diff/15001/runtime/bin/socket.h File runtime/bin/socket.h (right): https://codereview.chromium.org/14083007/diff/15001/runtime/bin/socket.h#newcode26 runtime/bin/socket.h:26: #define SOCKADDR_STORAGE_LENGTH(sa) \ On 2013/04/19 10:36:06, Søren Gjesse ...
7 years, 8 months ago (2013-04-22 14:05:15 UTC) #7
Søren Gjesse
LGTM with Mac and Android pending. The support for SocketOption IPV6_V6ONLY can be postpone to ...
7 years, 8 months ago (2013-04-22 15:02:08 UTC) #8
Anders Johnsen
PTAL https://codereview.chromium.org/14083007/diff/25001/runtime/bin/socket.cc File runtime/bin/socket.cc (right): https://codereview.chromium.org/14083007/diff/25001/runtime/bin/socket.cc#newcode27 runtime/bin/socket.cc:27: Dart_Handle host_obj = Dart_GetNativeArgument(args, 1); On 2013/04/22 15:02:08, ...
7 years, 8 months ago (2013-04-23 08:03:57 UTC) #9
Søren Gjesse
LGTM!
7 years, 8 months ago (2013-04-23 09:35:29 UTC) #10
Anders Johnsen
7 years, 8 months ago (2013-04-23 09:36:44 UTC) #11
Message was sent while issue was closed.
Committed patchset #11 manually as r21862 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698