}
+Socket.prototype.ref = function() {
+ if (this._handle)
+ this._handle.ref();
+};
+
+
+Socket.prototype.unref = function() {
+ if (this._handle)
+ this._handle.unref();
+};
+
// TODO share with net_uv and others
function errnoException(errorno, syscall) {
var e = new Error(syscall + ' ' + errorno);
};
+Socket.prototype.ref = function() {
+ if (this._handle)
+ this._handle.ref();
+};
+
+
+Socket.prototype.unref = function() {
+ if (this._handle)
+ this._handle.unref();
+};
+
+
+
function afterConnect(status, handle, req, readable, writable) {
var self = handle.owner;
this._slaves.push(socketList);
};
+Server.prototype.ref = function() {
+ if (this._handle)
+ this._handle.ref();
+};
+
+Server.prototype.unref = function() {
+ if (this._handle)
+ this._handle.unref();
+};
+
// TODO: isIP should be moved to the DNS code. Putting it here now because
// this is what the legacy system did.