Skip to content

Commit 9bdcd4f

Browse files
Allman-astylerd-a-v
Allman-astyler
authored andcommitted
Allman astyle: mDNS (esp8266#6629)
* allmanize mDNS
1 parent 52bc1df commit 9bdcd4f

15 files changed

+11735
-10417
lines changed

libraries/ESP8266mDNS/src/ESP8266mDNS.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include <ESP8266mDNS.h>
22

33
/*
4-
* MDNS responder global instance
5-
*
6-
* Class type that is instantiated depends on the type mapping in ESP8266mDNS.h
7-
*/
4+
MDNS responder global instance
5+
6+
Class type that is instantiated depends on the type mapping in ESP8266mDNS.h
7+
*/
88
#if !defined(NO_GLOBAL_INSTANCES) && !defined(NO_GLOBAL_MDNS)
99
MDNSResponder MDNS;
1010
#endif
+45-45
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
/*
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
4242
4343
*/
4444

@@ -47,10 +47,10 @@
4747

4848

4949
#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;
5555
#endif
5656

0 commit comments

Comments
 (0)