1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | /**
|
4 | * Class describing the wish to discover available services on a network. A
|
5 | * response to such search request is sent via unicast addressing to the
|
6 | * originating address and port number of the multicast request.
|
7 | */
|
8 | class MSearch {
|
9 | /**
|
10 | * Converts the M-SEARCH request into a buffer.
|
11 | */
|
12 | toBuffer() {
|
13 | return Buffer.from(MSearch.Payload);
|
14 | }
|
15 | }
|
16 | exports.MSearch = MSearch;
|
17 | /**
|
18 | * The M-SEARCH payload for searching for Axis devices on the network.
|
19 | */
|
20 | MSearch.Payload = 'M-SEARCH * HTTP/1.1\r\n' +
|
21 | 'Host:239.255.255.250:1900\r\n' +
|
22 | 'ST:urn:axis-com:service:BasicService:1\r\n' +
|
23 | 'Man:"ssdp:discover"\r\n' +
|
24 | 'MX:3\r\n' +
|
25 | '\r\n';
|
26 | //# sourceMappingURL=MSearch.js.map |
\ | No newline at end of file |