-
Notifications
You must be signed in to change notification settings - Fork 13.1k
LEA mDNS v2 #7540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
LEA mDNS v2 #7540
Changes from 143 commits
Commits
Show all changes
178 commits
Select commit
Hold shift + click to select a range
66e79bf
LEAmDNS2 (Host Version)
9600318
Merge branch 'master' into LEAmDNS2
LaborEtArs af3a877
Second try :-)
56015f4
Merge branch 'LEAmDNS2' of https://github.com/LaborEtArs/Arduino into…
5287f82
Merge branch 'LEAmDNS2' of https://github.com/LaborEtArs/Arduino into…
d-a-v 560c2a5
updated Source files from LEA
d-a-v d47f6f0
style
d-a-v 8115134
Merge branch 'master' into LEAmDNS2
d-a-v 1910848
two interface example is working (also with IPv6)
d-a-v c192667
restored former versions (legacy, LEAv1), clock example for new API
d-a-v 0e692c3
add enableArduino() into LEAmDNSv2
d-a-v 6d22b70
still using current LEA
d-a-v b7c3504
remove unwanted change
d-a-v ff0b100
remove unwanted changes
d-a-v e4bbed6
Merge branch 'LEAmDNS2' of github.com:d-a-v/Arduino into LEAmDNS2
d-a-v 556bb1e
Merge branch 'master' into LEAmDNS2
d-a-v c6db2e5
wip
d-a-v b5fefcf
fix for lwIP-v1
d-a-v 44ae221
Merge branch 'LEAmDNS2' into LEAmDNS2x
d-a-v 1272926
wip
d-a-v 5ffbe29
wip
d-a-v ad6b426
fix for lwIP-1.4
d-a-v d21edba
Merge branch 'LEAmDNS2' into LEAmDNS2x
d-a-v bae5f66
wip
d-a-v 52787b2
wip
d-a-v b465c16
wip
d-a-v 6646acb
wip - compilation OK - not tested
d-a-v eae8b4d
wip
d-a-v 46f6d2b
clockv2 example: ap + sta
d-a-v 0a81871
style
d-a-v b543f03
style
d-a-v 8a392db
Merge branch 'master' into LEAmDNS2
d-a-v 41bd315
using experimental namespace for not-default v2+Legacy API
d-a-v 92cd216
ditto
d-a-v cc2af84
Fix HostProbeResult callback
hreintke ff3e869
Style
hreintke 40262ce
fix copy-paste error
hreintke 823396b
Merge branch 'LEAmDNS2' of https://github.com/Labor-Et-Ars/ESP8266-Ar…
d-a-v 1a9e75c
Merge branch 'LEAmDNS2x' of github.com:d-a-v/Arduino into LEAmDNS2x
d-a-v 6e18637
wip
d-a-v e82d252
wip
d-a-v 0e0ef83
Merge branch 'master' into LEAmDNS2x
d-a-v 9a3a696
wip. probe and service
hreintke 930339e
wip query to use sendmessage() instead of sendmessage(netif)
hreintke 1d62486
Merge branch 'LEAmDNS2x' of github.com:Labor-Et-Ars/ESP8266-Arduino i…
d-a-v bd3baa9
wip, installservicequery
hreintke 27f275e
fix no retrun statement in sendmessage
hreintke 5e58c73
wip installHostQuery
hreintke 352a39a
Fix MDNS Clockv2 example
hreintke c786920
fix ipv6
hreintke 450056e
Merge branch 'LEAmDNS2x' of github.com:Labor-Et-Ars/ESP8266-Arduino i…
d-a-v 872a40d
Merge branch 'master' into LEAmDNS2x
d-a-v 258afd4
fix emulation on host for LEAmDNS2x
d-a-v 45c83ef
fix warning
d-a-v 49979f2
comment out 3 delay(clsConsts::u32SendCooldown) - separate defines in…
d-a-v 310526d
fix debug macros
d-a-v 2204902
Add serviceMonitor_v2
hreintke 46ab0a0
Improve MDNSServiceQueryCallback in servicemonior v1
hreintke 225a46e
Fix HostDomainPort
hreintke 39dafbc
temporary test mDNS_ServiceMonitor_v2_test.ino
d-a-v 59a6ae4
remove useless debug messages
d-a-v accbd9c
fix debug macros
d-a-v 1638402
always enable mdns error message when debug on serial port is enabled
d-a-v 79efe99
fix crash in mDNS_ServiceMonitor_v2_test.ino
d-a-v bb08c8c
temporarily disable ipv6
d-a-v 5505446
reintroduce `delay()` without `can_yield()` calls
d-a-v 4563fde
netdump as an option
d-a-v 6a83937
change mdns service names in test example
d-a-v 868bddf
Merge branch 'master' into LEAmDNS2x
d-a-v cf74cc1
brings parts of #7375, + sendTimeout()
d-a-v f8533fc
use udp::sendTimeout
d-a-v 5c3d2b6
fix constant
d-a-v 54066fb
+mock udp::sendTimeout()
d-a-v 295f397
fix typo
d-a-v bc10fbf
Fix HTTP Request in servicemonitor example
hreintke 68d4409
emulation on host: adding key/value cmdline parameters usable in sket…
d-a-v 6518db1
Merge branch 'master' into LEAmDNS2x
d-a-v 9cd34f3
fix services enumeration
d-a-v 7d99299
add LwipIntf::stateUpCB()
d-a-v 44029e4
Merge branch 'lwipintfup' into LEAmDNS2x
d-a-v e73057a
sync with submodule
d-a-v e99897d
Merge branch 'lwipintfup' into LEAmDNS2x
d-a-v 0e24587
use interface CB to restart mDNS
d-a-v 39622af
ditto
d-a-v 89068d3
Merge branch 'lwipintfup' into LEAmDNS2x
d-a-v 9f99c76
use netif callback to restart mDNS
d-a-v d50b15c
ditto
d-a-v 6a42f21
Merge branch 'lwipintfup' into LEAmDNS2x
d-a-v 6b49de9
Fix Announce Failure
hreintke c90e9e2
allow user to select mDNS version before including ESP8266mDNS.h
d-a-v 0df1d3b
typo
d-a-v 411a941
fix namespace imports
d-a-v 7e739ff
reimport clsLEAMDNSHost_Legacy::installServiceQuery() from initial so…
d-a-v 2cfef04
clsMDNSHost -> clsLEAMDNSHost
d-a-v 7fdf648
style
d-a-v 64abb8c
false alarm #if0defines removed, log messages added
d-a-v 166745d
style
d-a-v 7bbd930
remove test example
d-a-v 1309974
revert/fix ESP8266mDNS.h
d-a-v 2cdc902
style
d-a-v 11bd06b
Merge branch 'master' into LEAmDNS2x
d-a-v dd8d141
Merge branch 'master' into LEAmDNS2x
d-a-v 3539444
fix multiple call to ::begin()
d-a-v 468fa8c
ditto
d-a-v e5f0546
Merge branch 'master' into LEAmDNS2x
d-a-v 057ceb5
enable LEA v1 by default (= no change to arduino master)
d-a-v bd6b0eb
style and fixes for CI
d-a-v fd5d277
remove lwIP-1.4 specifics
d-a-v 27225e7
_P(PSTR())
d-a-v 32cb828
sprintf always -> strcpy once
d-a-v 6fede9b
comment
d-a-v 91166a2
fix message
d-a-v 57a2faf
fix host domain name and comment
d-a-v 4b0f6e7
add TODO
d-a-v 0b1cbba
remove comment
d-a-v 07ca395
use lower case esp8266
d-a-v 2839d59
fix strncpy size
d-a-v eda2e0b
astyle has issues with lambdas: rework logic to hide formatting issue
d-a-v 3c34fca
remove old code
d-a-v 29a2a88
remove service on request
d-a-v 357a343
remove dead code
d-a-v 01c1774
simplify use of tolower()
d-a-v 3b1447c
strncpy: fix max len
d-a-v a296be0
knwon typo
d-a-v 174e20e
fix bResult logic
d-a-v f3655f9
m_u8SentCount -> m_u32SentCount
d-a-v b8383e5
relavent -> relevant
d-a-v bdcfa73
fix strncpy
d-a-v 69834c1
memcpy->strcpy to always have the ending \0
d-a-v 42b05ce
remove redundant strcmp
d-a-v ab2d437
simplify fix strcpy
d-a-v 60f6e15
ditto
d-a-v 096094f
ditto
d-a-v ee08715
remove useless overloads
d-a-v c86b2d8
fix strncpy -> strcpy
d-a-v 5c3f746
lenght typo
d-a-v 2270b83
rework debug macros not nicely dealt by astyle
d-a-v 5c7808a
clarify comment
d-a-v 37d0300
align comment
d-a-v 05b1581
typo: form -> from
d-a-v 3431a01
typo: supportet -> supported
d-a-v 04a01f0
style
d-a-v 16504b2
fix typo in debug mode
d-a-v 21a9096
simplification
d-a-v bae5612
add missing MIT licenses
d-a-v dd4c44f
fix previous fix from review: comparing with strlen is superfluous wh…
d-a-v 2741d41
Revert "strncpy: fix max len"
hreintke 7993108
fix more strncpy
d-a-v 60f7456
comments for lwIPIntf-callback
d-a-v 99de12a
using type alias LwipIntf::CBType
d-a-v 3a22818
udpContext: move trySend to private section
d-a-v 9047d2d
typos in comments
d-a-v cdd0a64
rename local mDNS instance in example
d-a-v a71e1c9
memory reservation for string in example
d-a-v fcd214b
string reservation
d-a-v 6f92ac5
move strrstr() to stdlib_noniso.h
d-a-v 53d5477
"good practices"
d-a-v 281f67e
"good practices"
d-a-v 9a1ad4b
_instanceName() return 0 when 0 has to be returned
d-a-v 844abba
made some 0 into nullptr
d-a-v b27c540
typo
d-a-v a508202
typos
d-a-v da72802
static const -> constexpr
d-a-v 140c45f
nsec comment
d-a-v fb1224c
typos
d-a-v 0a18d0f
typedef -> using
d-a-v e50ff18
cleanup
d-a-v 691c083
const for some function members
d-a-v 0dab814
0 -> nullptr
d-a-v d4bf122
(*it). => it->
d-a-v 00453f1
cleanup
d-a-v 0c98b60
style
d-a-v 15861ca
typo
d-a-v d84e323
Merge branch 'master' into LEAmDNS2x
d-a-v fb1a026
OTA service using hostname
hreintke df56854
remove: original mDNS implementation, and v2-to-v1=legacy adaptation …
d-a-v 5f850f1
Merge branch 'master' into LEAmDNS2x
d-a-v 4e97d1e
remove obsolete comments
d-a-v File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
|
|
||
| #ifndef _LWIPINTF_H | ||
| #define _LWIPINTF_H | ||
|
|
||
| #include <lwip/netif.h> | ||
|
|
||
| #include <functional> | ||
|
|
||
| class LwipIntf | ||
| { | ||
| private: | ||
|
|
||
| LwipIntf () { } | ||
|
|
||
| protected: | ||
|
|
||
| static bool stateChangeSysCB (std::function<void(netif*)>&& cb); | ||
|
d-a-v marked this conversation as resolved.
Outdated
|
||
|
|
||
| public: | ||
|
|
||
| static bool stateUpCB (std::function<void(netif*)>&& cb); | ||
|
|
||
| }; | ||
|
|
||
| #endif // _LWIPINTF_H | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
|
|
||
| #include <LwipIntf.h> | ||
| #include <Schedule.h> | ||
| #include <debug.h> | ||
|
|
||
| #define NETIF_STATUS_CB_SIZE 3 | ||
|
|
||
| static int netifStatusChangeListLength = 0; | ||
| std::function<void(netif*)> netifStatusChangeList [NETIF_STATUS_CB_SIZE]; | ||
|
d-a-v marked this conversation as resolved.
Outdated
|
||
|
|
||
| extern "C" void netif_status_changed (struct netif* netif) | ||
| { | ||
| // override the default empty weak function | ||
| for (int i = 0; i < netifStatusChangeListLength; i++) | ||
| netifStatusChangeList[i](netif); | ||
| } | ||
|
|
||
| bool LwipIntf::stateChangeSysCB (std::function<void(netif*)>&& cb) | ||
| { | ||
| if (netifStatusChangeListLength >= NETIF_STATUS_CB_SIZE) | ||
| { | ||
| #if defined(DEBUG_ESP_CORE) | ||
| DEBUGV("NETIF_STATUS_CB_SIZE is too low\n"); | ||
| #endif | ||
| return false; | ||
| } | ||
|
|
||
| netifStatusChangeList[netifStatusChangeListLength++] = cb; | ||
| return true; | ||
| } | ||
|
|
||
| bool LwipIntf::stateUpCB (std::function<void(netif*)>&& cb) | ||
|
d-a-v marked this conversation as resolved.
Outdated
|
||
| { | ||
| return stateChangeSysCB([cb](netif* nif) | ||
| { | ||
| if (netif_is_up(nif)) | ||
| schedule_function([cb, nif]() | ||
| { | ||
| cb(nif); | ||
| }); | ||
| }); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.