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

Issue 1407123010: Extend the mDNS package with a native extension used on Mac OS (Closed)

Created:
5 years, 1 month ago by Søren Gjesse
Modified:
5 years, 1 month ago
Reviewers:
ricow1, karlklose
CC:
fletch+reviews_googlegroups.com
Base URL:
git@github.com:dart-lang/fletch.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Extend the mDNS package with a native extension used on Mac OS On Mac OS the mDNSResponder daemon has opened port 5353 exclusively. Therefore it is not possible to speak the mDNS protocol from Dart using datagram sockets. The native extension uses the Mac OS DNS Service Discovery C API. Updated the copyright notice to use Fletch instead of Dart. BUG= https://github.com/dart-lang/fletch/issues/225 R=karlklose@google.com, ricow@google.com Committed: https://github.com/dart-lang/fletch/commit/7b02aeda7e019a7daa08b2002be956150aaae4e2

Patch Set 1 #

Patch Set 2 : Added a working Mac OS implementation #

Patch Set 3 : Minor fixes #

Patch Set 4 : Changed to pull binaries from GCS #

Patch Set 5 : Uploaded binary for Linux and added README #

Total comments: 6

Patch Set 6 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+580 lines, -125 lines) Patch
M .gitignore View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M DEPS View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M build.ninja View 1 chunk +1 line, -0 lines 0 comments Download
M fletch.gyp View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M pkg/mdns/lib/mdns.dart View 1 2 chunks +32 lines, -78 lines 0 comments Download
A pkg/mdns/lib/native/libmdns_extension_lib.dylib.sha1 View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A pkg/mdns/lib/native/libmdns_extension_lib.so.sha1 View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M pkg/mdns/lib/src/constants.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
M pkg/mdns/lib/src/lookup_resolver.dart View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
A pkg/mdns/lib/src/native_extension_client.dart View 1 2 3 4 5 1 chunk +106 lines, -0 lines 0 comments Download
A + pkg/mdns/lib/src/native_protocol_client.dart View 1 4 chunks +7 lines, -25 lines 0 comments Download
M pkg/mdns/test/decode_test.dart View 1 2 chunks +2 lines, -3 lines 0 comments Download
M pkg/mdns/test/lookup_resolver_test.dart View 1 1 chunk +2 lines, -2 lines 0 comments Download
A pkg/mdns/test/native_extension_test.dart View 1 1 chunk +18 lines, -0 lines 0 comments Download
A src/pkg/mdns/README View 1 2 3 4 1 chunk +26 lines, -0 lines 0 comments Download
A + src/pkg/mdns/copy_dylib.sh View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
A src/pkg/mdns/mdns.gyp View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
A src/pkg/mdns/mdns_extension.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A src/pkg/mdns/mdns_extension.cc View 1 1 chunk +106 lines, -0 lines 0 comments Download
A src/pkg/mdns/mdns_extension_linux.cc View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
A src/pkg/mdns/mdns_extension_macos.cc View 1 2 3 4 5 1 chunk +132 lines, -0 lines 0 comments Download
A src/pkg/mdns/upload_dylib.sh View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M tests/fletch_tests/all_tests.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M tests/mdns_tests/mdns_tests.dart View 1 1 chunk +11 lines, -5 lines 0 comments Download
M tools/testing/dart/fletch_warnings_suite.dart View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
Søren Gjesse
5 years, 1 month ago (2015-10-30 09:23:57 UTC) #3
ricow1
lgtm https://codereview.chromium.org/1407123010/diff/80001/pkg/mdns/.gitignore File pkg/mdns/.gitignore (right): https://codereview.chromium.org/1407123010/diff/80001/pkg/mdns/.gitignore#newcode1 pkg/mdns/.gitignore:1: lib/native/libmdns_extension_lib.so we add all gitignore in the top ...
5 years, 1 month ago (2015-10-30 10:28:33 UTC) #4
karlklose
Dart and C++ LGTM. Maybe add a TODO to handle the case where no response ...
5 years, 1 month ago (2015-10-30 11:17:15 UTC) #5
Søren Gjesse
Added TODO about timeout. https://codereview.chromium.org/1407123010/diff/80001/pkg/mdns/.gitignore File pkg/mdns/.gitignore (right): https://codereview.chromium.org/1407123010/diff/80001/pkg/mdns/.gitignore#newcode1 pkg/mdns/.gitignore:1: lib/native/libmdns_extension_lib.so On 2015/10/30 10:28:33, ricow1 ...
5 years, 1 month ago (2015-10-30 12:13:16 UTC) #6
Søren Gjesse
5 years, 1 month ago (2015-11-02 08:06:24 UTC) #8
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
7b02aeda7e019a7daa08b2002be956150aaae4e2.

Powered by Google App Engine
This is Rietveld 408576698