|
|
@ -335,6 +335,11 @@ Socket.prototype.connect = function () { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Socket.prototype.address = function () { |
|
|
|
return getsockname(this.fd); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Socket.prototype.forceClose = function (exception) { |
|
|
|
if (this.fd) { |
|
|
|
this.readable = false; |
|
|
@ -471,8 +476,8 @@ Server.prototype.listen = function () { |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
Server.prototype.sockName = function () { |
|
|
|
return getsockname(self.fd); |
|
|
|
Server.prototype.address = function () { |
|
|
|
return getsockname(this.fd); |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|