(buffer, address = DNSSD.IP, port = DNSSD.PORT)
| 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"); |