Skip to content
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

Update MDNS library with query support #2237

Merged
merged 52 commits into from
Mar 8, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
60e14ea
Initial untested version.
slav-at-attachix Nov 4, 2020
5941ca3
wip
mikee47 Mar 1, 2021
bf420fd
QuestionType -> ResourceType (strong enum), refactor packet read/write
mikee47 Mar 2, 2021
54c6c41
Simplify using String for name and data fields
mikee47 Mar 2, 2021
99ca327
Lists WIP
mikee47 Mar 2, 2021
7619c4b
Refactor into classes
mikee47 Mar 2, 2021
44d6962
save incoming data for testing
mikee47 Mar 2, 2021
57eafaa
Test packets
mikee47 Mar 2, 2021
747a3f7
Do minimum amount of parsing, fetch fields on request
mikee47 Mar 2, 2021
7db07fe
Implement answer and txt lookup
mikee47 Mar 2, 2021
b848a98
Refactor into `Resource` namespace
mikee47 Mar 2, 2021
f8b8d9d
Comments, tidy
mikee47 Mar 2, 2021
28e35d4
Add file headers
mikee47 Mar 2, 2021
667ed85
Test on ESP8266, fix.
mikee47 Mar 3, 2021
7c06682
Add packet callback (for debugging)
mikee47 Mar 7, 2021
2e5f83b
Scan all test files
mikee47 Mar 3, 2021
be906da
Revise name parsing to support extraction of components
mikee47 Mar 3, 2021
9193905
+savefile
mikee47 Mar 3, 2021
d050dd8
Add question support to response, separate list
mikee47 Mar 3, 2021
ecfc749
Add `Kind` field to answer to differentiate between answers, name ser…
mikee47 Mar 3, 2021
024c212
Reduce object size by storing `Ptr` values instead of memory pointers
mikee47 Mar 3, 2021
71bab1c
Fix LinkedObjectList::count()
mikee47 Mar 3, 2021
0dac397
Refactory Query and add support for multiple questions
mikee47 Mar 3, 2021
6504217
Add question generate/read to test
mikee47 Mar 3, 2021
80b05a9
+app
mikee47 Mar 3, 2021
0f87a1f
Building answers
mikee47 Mar 3, 2021
374656b
Writing questions
mikee47 Mar 4, 2021
efaca9c
Remove Query
mikee47 Mar 4, 2021
614ab51
Rename `Finder` -> `Server`
mikee47 Mar 4, 2021
0921b65
Rename `Response` -> `Message`
mikee47 Mar 7, 2021
acc1ea0
Use message address/port for sending
mikee47 Mar 4, 2021
09da4e1
Add global Server instance
mikee47 Mar 4, 2021
99baab3
Use test files on Host only
mikee47 Mar 4, 2021
cd7cea8
Disable AP for MDNS requests to work
mikee47 Mar 4, 2021
488ee61
Make `writeName` a method of Packet
mikee47 Mar 4, 2021
40938df
Support name pointer fixups
mikee47 Mar 4, 2021
79b11a7
Add with Name
mikee47 Mar 4, 2021
7343dd9
Update README
mikee47 Mar 4, 2021
65f392a
Comment headers
mikee47 Mar 4, 2021
cb3212f
Move `Packet.h` (without writeName) into `Core/Data`, implement `Netw…
mikee47 Mar 5, 2021
823ff8d
Move HostPacket and NetworkPacket into `Packet.h`
mikee47 Mar 5, 2021
944f025
In Basic_Mdns sample, send initial search immediately then repeat eve…
mikee47 Mar 5, 2021
cb9ff5a
Add mDNS debug module
mikee47 Mar 5, 2021
b31f561
Use `Message` in Server::send
mikee47 Mar 5, 2021
628e1e7
Add `Query` and `Reply` classes to simplify code
mikee47 Mar 5, 2021
5c6efe3
Add += operator to TXT
mikee47 Mar 5, 2021
598eaef
Add `onSend` callback for mDNS server (debugging)
mikee47 Mar 5, 2021
b7a2eda
Update resource types (SOA, ANY)
mikee47 Mar 5, 2021
3534a59
Name matching
mikee47 Mar 5, 2021
5785f06
Update Basic_Mdns sample
mikee47 Mar 5, 2021
fb30f5a
Add message handler
mikee47 Mar 7, 2021
50f8714
Move mdns out of Components and into MDNS library submodule
mikee47 Mar 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,10 @@
path = Sming/Libraries/libsodium/libsodium
url = https://github.com/jedisct1/libsodium.git
ignore = dirty
[submodule "Libraries.MDNS"]
path = Sming/Libraries/MDNS
url = https://github.com/mikee47/Sming-MDNS
ignore = dirty
[submodule "Libraries.modbusino"]
path = Sming/Libraries/modbusino/modbusino
url = https://github.com/kmihaylov/modbusino.git
Expand Down
Empty file removed Sming/Components/mdns/.cs
Empty file.
53 changes: 0 additions & 53 deletions Sming/Components/mdns/README.rst

This file was deleted.

14 changes: 0 additions & 14 deletions Sming/Components/mdns/component.mk

This file was deleted.

48 changes: 0 additions & 48 deletions Sming/Components/mdns/include/Network/Mdns/Responder.h

This file was deleted.

72 changes: 0 additions & 72 deletions Sming/Components/mdns/include/Network/Mdns/Service.h

This file was deleted.

Loading