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 16514010: Add NetworkAdaptor to dart:io. (Closed)

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

Description

Add NetworkAdaptor to dart:io. NetworkAdaptor contains a static method, list, that will query the underlaying system for active network adaptors. BUG= R=sgjesse@google.com Committed: https://code.google.com/p/dart/source/detail?r=24267

Patch Set 1 #

Patch Set 2 : Add test file. #

Total comments: 6

Patch Set 3 : Clean up implementation and add tests. #

Total comments: 10

Patch Set 4 : Add comment and cleanup. #

Patch Set 5 : Add support for win, mac and android. #

Total comments: 10

Patch Set 6 : Review update. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+527 lines, -62 lines) Patch
M runtime/bin/bin.gypi View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/bin/dbg_connection.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M runtime/bin/secure_socket.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/socket.h View 1 2 3 4 6 chunks +47 lines, -15 lines 0 comments Download
M runtime/bin/socket.cc View 1 2 3 4 5 chunks +58 lines, -4 lines 0 comments Download
M runtime/bin/socket_android.cc View 1 2 3 4 5 chunks +55 lines, -7 lines 0 comments Download
M runtime/bin/socket_linux.cc View 1 2 3 4 7 chunks +61 lines, -13 lines 0 comments Download
M runtime/bin/socket_macos.cc View 1 2 3 4 4 chunks +54 lines, -7 lines 0 comments Download
M runtime/bin/socket_patch.dart View 1 2 3 4 5 chunks +85 lines, -0 lines 0 comments Download
M runtime/bin/socket_win.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M runtime/bin/socket_win.cc View 1 2 3 4 5 7 chunks +67 lines, -11 lines 0 comments Download
M runtime/bin/vmstats_impl.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M sdk/lib/io/socket.dart View 1 2 3 4 2 chunks +48 lines, -0 lines 0 comments Download
M tests/standalone/io/internet_address_test.dart View 2 chunks +2 lines, -2 lines 0 comments Download
A tests/standalone/io/network_interface_test.dart View 1 2 1 chunk +39 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Anders Johnsen
Linux impl for now, please comment on API before I approach other platforms.
7 years, 6 months ago (2013-06-10 10:25:10 UTC) #1
Søren Gjesse
https://codereview.chromium.org/16514010/diff/2001/runtime/bin/socket.h File runtime/bin/socket.h (right): https://codereview.chromium.org/16514010/diff/2001/runtime/bin/socket.h#newcode101 runtime/bin/socket.h:101: class AdaptorSocketAddress : public SocketAddress { Instead of inheriting ...
7 years, 6 months ago (2013-06-10 12:26:38 UTC) #2
Anders Johnsen
PTAL, and I'll start on other platforms. https://codereview.chromium.org/16514010/diff/2001/sdk/lib/io/socket.dart File sdk/lib/io/socket.dart (right): https://codereview.chromium.org/16514010/diff/2001/sdk/lib/io/socket.dart#newcode102 sdk/lib/io/socket.dart:102: class NetworkAdaptor ...
7 years, 6 months ago (2013-06-20 13:42:08 UTC) #3
Søren Gjesse
https://codereview.chromium.org/16514010/diff/9001/runtime/bin/socket_linux.cc File runtime/bin/socket_linux.cc (right): https://codereview.chromium.org/16514010/diff/9001/runtime/bin/socket_linux.cc#newcode246 runtime/bin/socket_linux.cc:246: (family == AF_INET || family == AF_INET6)))) { Consider ...
7 years, 6 months ago (2013-06-20 14:38:17 UTC) #4
Søren Gjesse
On 2013/06/20 14:38:17, Søren Gjesse wrote: > https://codereview.chromium.org/16514010/diff/9001/runtime/bin/socket_linux.cc > File runtime/bin/socket_linux.cc (right): > > https://codereview.chromium.org/16514010/diff/9001/runtime/bin/socket_linux.cc#newcode246 ...
7 years, 6 months ago (2013-06-20 14:38:48 UTC) #5
Anders Johnsen
Proceeding with other platforms. https://codereview.chromium.org/16514010/diff/9001/runtime/bin/socket_linux.cc File runtime/bin/socket_linux.cc (right): https://codereview.chromium.org/16514010/diff/9001/runtime/bin/socket_linux.cc#newcode246 runtime/bin/socket_linux.cc:246: (family == AF_INET || family ...
7 years, 6 months ago (2013-06-20 15:00:25 UTC) #6
Anders Johnsen
PTAL, added support for other platforms. This also changes GetAddLength to take a pointer value ...
7 years, 6 months ago (2013-06-20 17:10:37 UTC) #7
Søren Gjesse
LGTM! https://codereview.chromium.org/16514010/diff/19001/runtime/bin/socket_win.cc File runtime/bin/socket_win.cc (right): https://codereview.chromium.org/16514010/diff/19001/runtime/bin/socket_win.cc#newcode264 runtime/bin/socket_win.cc:264: GetAdaptersAddresses(SocketAddress::FromType(type), You could consider adding the flags: GAA_FLAG_SKIP_ANYCAST ...
7 years, 6 months ago (2013-06-20 18:22:05 UTC) #8
Anders Johnsen
https://codereview.chromium.org/16514010/diff/19001/runtime/bin/socket_win.cc File runtime/bin/socket_win.cc (right): https://codereview.chromium.org/16514010/diff/19001/runtime/bin/socket_win.cc#newcode264 runtime/bin/socket_win.cc:264: GetAdaptersAddresses(SocketAddress::FromType(type), On 2013/06/20 18:22:05, Søren Gjesse wrote: > You ...
7 years, 6 months ago (2013-06-21 07:58:35 UTC) #9
Anders Johnsen
7 years, 6 months ago (2013-06-21 07:59:04 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 manually as r24267 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698