diff options
author | Ryan <ry@tinyclouds.org> | 2009-03-02 15:49:24 +0100 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-03-02 15:49:24 +0100 |
commit | 1afe6d26dbcf76de15df7e2c8fc3aadbbb8b117d (patch) | |
tree | 69bbac7a2744c86ef69433da6aba075701404f8e /tcp_example.js | |
parent | bd136fae40c2351de29265b7e4d379cc7acb0384 (diff) | |
download | node-new-1afe6d26dbcf76de15df7e2c8fc3aadbbb8b117d.tar.gz |
begin work on the TCP.connect interface
Diffstat (limited to 'tcp_example.js')
-rw-r--r-- | tcp_example.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tcp_example.js b/tcp_example.js new file mode 100644 index 0000000000..8940b85a02 --- /dev/null +++ b/tcp_example.js @@ -0,0 +1,9 @@ + +TCP.connect ({ + host: "google.com", + port: 80, + connected: function () { + log("connected to google.com"); + } +}); + |