server.js 390 B

12345678910111213141516171819
  1. var server = function(){
  2. this.name = null;
  3. this.sid = null;
  4. this.description = null;
  5. this.distance = null;
  6. this.uplink = null;
  7. this.introduce = function(newName, newSid, newDescription, newDistance, newUplink){
  8. this.name = newName;
  9. this.sid = newSid;
  10. this.description = newDescription;
  11. this.distance = newDistance;
  12. this.uplink = newUplink;
  13. }
  14. }
  15. module.exports = server;