How to use the mdns/server.host function in mdns

To help you get started, we’ve selected a few mdns examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Kinoma / kinomajs / xs6 / extensions / mdns / mdns_service.js View on Github external
constructor(service, servname, port, txt, ttl = DEFAULT_TTL) {
		this.service = service;
		this.servname = servname || server.host;
		this.port = port;
		this.ttl = ttl;
		this.txt = txt;
		this.name = this.servname + (service ? "." + this.service : "") + "." + server.domain;
		this.host = server.host + "." + server.domain;
		this.running = [];
	};
	close() {
github Kinoma / kinomajs / xs6 / extensions / mdns / mdns_service.js View on Github external
constructor(service, servname, port, txt, ttl = DEFAULT_TTL) {
		this.service = service;
		this.servname = servname || server.host;
		this.port = port;
		this.ttl = ttl;
		this.txt = txt;
		this.name = this.servname + (service ? "." + this.service : "") + "." + server.domain;
		this.host = server.host + "." + server.domain;
		this.running = [];
	};
	close() {