diff options
author | Ryan <ry@tinyclouds.org> | 2009-06-30 13:56:52 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-06-30 13:56:52 +0200 |
commit | 8047b912c017c66b991f1735549a865f3d38db8d (patch) | |
tree | ab4b38837beee03e343b9ffe0a1a85e9c031c92e /src/node.js | |
parent | d56552dc668ecd0759e9c0f76f5a4731ca2ee8c5 (diff) | |
download | nodejs-8047b912c017c66b991f1735549a865f3d38db8d.tar.gz nodejs-8047b912c017c66b991f1735549a865f3d38db8d.tar.bz2 nodejs-8047b912c017c66b991f1735549a865f3d38db8d.zip |
Change 'new node.tcp.Connection' to 'node.tcp.createConnection'
Diffstat (limited to 'src/node.js')
-rw-r--r-- | src/node.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/node.js b/src/node.js index a4faaf0a9..6b2aaec44 100644 --- a/src/node.js +++ b/src/node.js @@ -11,6 +11,12 @@ node.createProcess = function (command) { return process; }; +node.tcp.createConnection = function (port, host) { + var connection = new node.tcp.Connection(); + connection.connect(port, host); + return connection; +}; + // Timers function setTimeout (callback, after) { |