MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / write

Method write

modules/io/dnssd/dnssd.js:73–81  ·  view source on GitHub ↗
(buffer, address = DNSSD.IP, port = DNSSD.PORT)

Source from the content-addressed store, hash-verified

71 delete this.udp;
72 }
73 write(buffer, address = DNSSD.IP, port = DNSSD.PORT) {
74 try {
75 this.udp.write(buffer, address, port);
76 }
77 catch {
78 return false;
79 }
80 return true;
81 }
82 claim(options) {
83 if (this.claims.some(claim => claim.host === options.host))
84 throw new Error("duplicate");

Callers 6

addMethod · 0.95
updateMethod · 0.95
removeMethod · 0.95
scanPacketMethod · 0.95
#onPacketMethod · 0.95
probeMethod · 0.95

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected