|
1 | 1 | /*
|
2 |
| - ESP8266mDNS.h - mDNSResponder for ESP8266 family |
3 |
| - This file is part of the esp8266 core for Arduino environment. |
4 |
| -
|
5 |
| - Legacy_ESP8266mDNS: |
6 |
| - The well known, thouroughly tested (yet no flawless) default mDNS library for the ESP8266 family |
7 |
| -
|
8 |
| - LEA_ESP8266mDNS: |
9 |
| - An (currently) experimental mDNS implementation, that supports a lot more of mDNS features than Legacy_ESP8266mDNS, like: |
10 |
| - - Presenting a DNS-SD service to interested observers, eg. a http server by presenting _http._tcp service |
11 |
| - - Support for multi-level compressed names in input; in output only a very simple one-leven full-name compression is implemented |
12 |
| - - Probing host and service domains for uniqueness in the local network |
13 |
| - - Tiebreaking while probing is supportet in a very minimalistic way (the 'higher' IP address wins the tiebreak) |
14 |
| - - Announcing available services after successful probing |
15 |
| - - Using fixed service TXT items or |
16 |
| - - Using dynamic service TXT items for presented services (via callback) |
17 |
| - - Remove services (and un-announcing them to the observers by sending goodbye-messages) |
18 |
| - - Static queries for DNS-SD services (creating a fixed answer set after a certain timeout period) |
19 |
| - - Dynamic queries for DNS-SD services with cached and updated answers and user notifications |
20 |
| - - Support for multi-homed client host domains |
21 |
| -
|
22 |
| - See 'LEA_ESP8266mDNS/EPS8266mDNS.h' for more implementation details and usage informations. |
23 |
| - See 'examples/mDNS_Clock' and 'examples/mDNS_ServiceMonitor' for implementation examples of the advanced features. |
24 |
| -
|
25 |
| - LEA_ESP8266mDNS is (mostly) client source code compatible to 'Legacy_ESP8266mDNS', so it could be |
26 |
| - use as a 'drop-in' replacement in existing projects. |
27 |
| -
|
28 |
| -
|
29 |
| - This library is free software; you can redistribute it and/or |
30 |
| - modify it under the terms of the GNU Lesser General Public |
31 |
| - License as published by the Free Software Foundation; either |
32 |
| - version 2.1 of the License, or (at your option) any later version. |
33 |
| -
|
34 |
| - This library is distributed in the hope that it will be useful, |
35 |
| - but WITHOUT ANY WARRANTY; without even the implied warranty of |
36 |
| - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
37 |
| - Lesser General Public License for more details. |
38 |
| -
|
39 |
| - You should have received a copy of the GNU Lesser General Public |
40 |
| - License along with this library; if not, write to the Free Software |
41 |
| - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
| 2 | + ESP8266mDNS.h - mDNSResponder for ESP8266 family |
| 3 | + This file is part of the esp8266 core for Arduino environment. |
| 4 | +
|
| 5 | + Legacy_ESP8266mDNS: |
| 6 | + The well known, thouroughly tested (yet no flawless) default mDNS library for the ESP8266 family |
| 7 | +
|
| 8 | + LEA_ESP8266mDNS: |
| 9 | + An (currently) experimental mDNS implementation, that supports a lot more of mDNS features than Legacy_ESP8266mDNS, like: |
| 10 | + - Presenting a DNS-SD service to interested observers, eg. a http server by presenting _http._tcp service |
| 11 | + - Support for multi-level compressed names in input; in output only a very simple one-leven full-name compression is implemented |
| 12 | + - Probing host and service domains for uniqueness in the local network |
| 13 | + - Tiebreaking while probing is supportet in a very minimalistic way (the 'higher' IP address wins the tiebreak) |
| 14 | + - Announcing available services after successful probing |
| 15 | + - Using fixed service TXT items or |
| 16 | + - Using dynamic service TXT items for presented services (via callback) |
| 17 | + - Remove services (and un-announcing them to the observers by sending goodbye-messages) |
| 18 | + - Static queries for DNS-SD services (creating a fixed answer set after a certain timeout period) |
| 19 | + - Dynamic queries for DNS-SD services with cached and updated answers and user notifications |
| 20 | + - Support for multi-homed client host domains |
| 21 | +
|
| 22 | + See 'LEA_ESP8266mDNS/EPS8266mDNS.h' for more implementation details and usage informations. |
| 23 | + See 'examples/mDNS_Clock' and 'examples/mDNS_ServiceMonitor' for implementation examples of the advanced features. |
| 24 | +
|
| 25 | + LEA_ESP8266mDNS is (mostly) client source code compatible to 'Legacy_ESP8266mDNS', so it could be |
| 26 | + use as a 'drop-in' replacement in existing projects. |
| 27 | +
|
| 28 | +
|
| 29 | + This library is free software; you can redistribute it and/or |
| 30 | + modify it under the terms of the GNU Lesser General Public |
| 31 | + License as published by the Free Software Foundation; either |
| 32 | + version 2.1 of the License, or (at your option) any later version. |
| 33 | +
|
| 34 | + This library is distributed in the hope that it will be useful, |
| 35 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 36 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 37 | + Lesser General Public License for more details. |
| 38 | +
|
| 39 | + You should have received a copy of the GNU Lesser General Public |
| 40 | + License along with this library; if not, write to the Free Software |
| 41 | + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
42 | 42 |
|
43 | 43 | */
|
44 | 44 |
|
|
47 | 47 |
|
48 | 48 |
|
49 | 49 | #if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_MDNS)
|
50 |
| - // Maps the implementation to use to the global namespace type |
51 |
| - //using MDNSResponder = Legacy_MDNSResponder::MDNSResponder; //legacy |
52 |
| - using MDNSResponder = esp8266::MDNSImplementation::MDNSResponder; //new |
53 |
| - |
54 |
| - extern MDNSResponder MDNS; |
| 50 | +// Maps the implementation to use to the global namespace type |
| 51 | +//using MDNSResponder = Legacy_MDNSResponder::MDNSResponder; //legacy |
| 52 | +using MDNSResponder = esp8266::MDNSImplementation::MDNSResponder; //new |
| 53 | + |
| 54 | +extern MDNSResponder MDNS; |
55 | 55 | #endif
|
56 | 56 |
|
0 commit comments