projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc0556c
)
net_uv: Export Socket and Stream
author
Ryan Dahl
<ry@tinyclouds.org>
Fri, 17 Jun 2011 16:09:15 +0000
(18:09 +0200)
committer
Ryan Dahl
<ry@tinyclouds.org>
Fri, 17 Jun 2011 16:09:15 +0000
(18:09 +0200)
lib/net_uv.js
patch
|
blob
|
history
diff --git
a/lib/net_uv.js
b/lib/net_uv.js
index
9f9441a
..
40c1e89
100644
(file)
--- a/
lib/net_uv.js
+++ b/
lib/net_uv.js
@@
-54,6
+54,10
@@
function Socket(options) {
util.inherits(Socket, stream.Stream);
+exports.Socket = Socket;
+exports.Stream = Socket; // Legacy naming.
+
+
Socket.prototype.setTimeout = function(msecs, callback) {
if (msecs > 0) {
timers.enroll(this, msecs);