kitejs
Version:
the rpc framework Kite for Node.js
26 lines (25 loc) • 650 B
JavaScript
;
/**
* @author xiangshouding
* @file protocol/protocol.ts
*/
exports.__esModule = true;
var Address = /** @class */ (function () {
function Address(host, port) {
if (host === void 0) { host = '127.0.0.1'; }
if (port === void 0) { port = 5099; }
this.host = host;
this.port = port;
}
Address.prototype.getHost = function () {
return this.host;
};
Address.prototype.getPort = function () {
return this.port;
};
Address.prototype.getAddress = function () {
return this.host + ':' + this.port;
};
return Address;
}());
exports.Address = Address;