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

Issue 9034014: Add support for the node net module. (Closed)

Created:
9 years ago by jackpal
Modified:
8 years, 11 months ago
Reviewers:
sra1, Jennifer Messerly
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add support for several modules. + os + net + dns + http + url + querystring + cluster + zlib + Buffer + typed arrays + crypto Put each node module in its own dart library. Create interfaces for the different types of streams, so that readable, writable, and readWrite streams all share protocol. Add simple echoServer and httpServer samples. Committed: https://code.google.com/p/dart/source/detail?r=3471

Patch Set 1 #

Patch Set 2 : add more apis, improve returning lists, maps #

Patch Set 3 : add more apis, minor tweaks. #

Patch Set 4 : added http methods. #

Patch Set 5 : auto-generate class fs #

Patch Set 6 : fix typo. #

Patch Set 7 : Added DNS module #

Patch Set 8 : Added typed arrays. #

Patch Set 9 : Made typed arrays more similar to the dom library version. #

Patch Set 10 : '' #

Patch Set 11 : fixed bug in unzip test #

Patch Set 12 : Implemented List protocol for Buffers #

Patch Set 13 : Typed arrays now implement list protocol. #

Patch Set 14 : '' #

Patch Set 15 : Make Buffer an interface with two implementations. #

Patch Set 16 : Upgrade to latest dart compiler. #

Patch Set 17 : '' #

Patch Set 18 : Add new node module libraries #

Patch Set 19 : '' #

Total comments: 19

Patch Set 20 : new version of minfrog #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5727 lines, -655 lines) Patch
M frog/file_system_node.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +2 lines, -0 lines 0 comments Download
A frog/lib/node/child_process.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +83 lines, -0 lines 0 comments Download
A frog/lib/node/cluster.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +43 lines, -0 lines 0 comments Download
frog/lib/node/crypto.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +175 lines, -0 lines 0 comments Download
A frog/lib/node/dns.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +100 lines, -0 lines 0 comments Download
A frog/lib/node/fs.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +497 lines, -0 lines 0 comments Download
A frog/lib/node/http.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +556 lines, -0 lines 0 comments Download
A frog/lib/node/net.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +231 lines, -0 lines 2 comments Download
M frog/lib/node/node.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 9 chunks +826 lines, -355 lines 0 comments Download
A frog/lib/node/nodeimpl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +211 lines, -0 lines 0 comments Download
A frog/lib/node/os.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +64 lines, -0 lines 0 comments Download
A frog/lib/node/path.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +15 lines, -0 lines 0 comments Download
A frog/lib/node/querystring.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +35 lines, -0 lines 0 comments Download
A frog/lib/node/readline.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +79 lines, -0 lines 0 comments Download
A frog/lib/node/repl.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +30 lines, -0 lines 0 comments Download
A frog/lib/node/tls.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +83 lines, -0 lines 0 comments Download
A frog/lib/node/tty.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +13 lines, -0 lines 0 comments Download
A frog/lib/node/url.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +65 lines, -0 lines 0 comments Download
A frog/lib/node/util.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +22 lines, -0 lines 0 comments Download
A frog/lib/node/vm.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +23 lines, -0 lines 0 comments Download
A frog/lib/node/zlib.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1027 lines, -0 lines 0 comments Download
M frog/minfrog View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 170 chunks +505 lines, -282 lines 0 comments Download
M frog/minfrog.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +3 lines, -0 lines 0 comments Download
A frog/samples/node/echoServer.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +16 lines, -0 lines 0 comments Download
A frog/samples/node/httpServer.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +14 lines, -0 lines 0 comments Download
M frog/tests/frog/frog.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -3 lines 0 comments Download
M frog/tests/frog/src/NodeBufferTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +103 lines, -9 lines 0 comments Download
A frog/tests/frog/src/NodeCryptoTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +168 lines, -0 lines 0 comments Download
A frog/tests/frog/src/NodeDnsTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +104 lines, -0 lines 0 comments Download
M frog/tests/frog/src/NodeTestHelper.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +3 lines, -6 lines 0 comments Download
A frog/tests/frog/src/NodeTypedArrayTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +514 lines, -0 lines 0 comments Download
A frog/tests/frog/src/NodeZlibTest.dart View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +117 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Jennifer Messerly
Few minor comments but overall lgtm. Very cool to see more APIs getting exposed. http://codereview.chromium.org/9034014/diff/32020/frog/lib/node/child_process.dart ...
8 years, 11 months ago (2012-01-21 01:00:31 UTC) #1
sra1
I think this CL broke compilation of the Mac vserion of Dartium. http://chromegw.corp.google.com/i/client.dashium/builders/dashium-mac-inc/builds/4599 ____CompileC ../../xcodebuild/libxml.build/Release/libxml.build/Objects-normal/i386/xpath.o ...
8 years, 11 months ago (2012-01-21 04:42:21 UTC) #2
sra1
https://chromiumcodereview.appspot.com/9034014/diff/35002/frog/lib/node/net.dart File frog/lib/node/net.dart (right): https://chromiumcodereview.appspot.com/9034014/diff/35002/frog/lib/node/net.dart#newcode17 frog/lib/node/net.dart:17: native "return this.createConnection(path,connectListener)"; 'this' makes no sense in a ...
8 years, 11 months ago (2012-01-23 07:25:37 UTC) #3
jackpal
https://chromiumcodereview.appspot.com/9034014/diff/35002/frog/lib/node/net.dart File frog/lib/node/net.dart (right): https://chromiumcodereview.appspot.com/9034014/diff/35002/frog/lib/node/net.dart#newcode17 frog/lib/node/net.dart:17: native "return this.createConnection(path,connectListener)"; On 2012/01/23 07:25:37, sra1 wrote: > ...
8 years, 11 months ago (2012-01-23 13:13:38 UTC) #4
Jennifer Messerly
8 years, 11 months ago (2012-01-23 18:33:36 UTC) #5
On 2012/01/23 13:13:38, jackpal wrote:
>
https://chromiumcodereview.appspot.com/9034014/diff/35002/frog/lib/node/net.dart
> File frog/lib/node/net.dart (right):
> 
>
https://chromiumcodereview.appspot.com/9034014/diff/35002/frog/lib/node/net.d...
> frog/lib/node/net.dart:17: native "return
> this.createConnection(path,connectListener)";
> On 2012/01/23 07:25:37, sra1 wrote:
> > 'this' makes no sense in a static method.
> 
> I am pretty sure the "this" is required. The Dart static method is implemented
> in JavaScript as a normal method on a singleton instance. Without the "this"
> there's no way for JavaScript to know which method to call.

Yeah, that sounds right to me.

Powered by Google App Engine
This is Rietveld 408576698