David Craven
b727efee13
Don't poll network unnecessarily. ( #1977 )
...
* Don't poll network unnecessarily.
* Fix ci.
* Damn tokio.
* Address review comments.
* Update deps.
* Don't drop packet if socket is not writable.
* Increase TTL and rename to `query_interval`.
* Update CHANGELOG.
Co-authored-by: Roman S. Borschel <roman@parity.io>
2021-03-02 10:18:24 +01:00
Roman Borschel
4c1657ea0f
[mdns] Split response packets if necessary. ( #1877 )
...
* [mdns] Split response packets.
Prevent MDNS response packets becoming too large by creating
multi-packet responses. Also skip addresses that don't fit
into a TXT record or contain invalid characters.
* Update protocols/mdns/src/dns.rs
Co-authored-by: Max Inden <mail@max-inden.de>
* Refactor response packet construction.
* Update mdns changelog.
Co-authored-by: Max Inden <mail@max-inden.de>
2020-12-08 11:47:35 +01:00
David Craven
505a17dfc2
Adds support for handling interface changes to mdns behaviour. ( #1830 )
...
* mdns: handle address changes.
* Update examples.
* Use async-io.
* Fix tokio-chat.
* Address review comments.
* Update if-watch.
* Poll interfaces correctly.
* Use socket2 and remove wasm-time.
* Update if-watch.
* Update versions and changelogs.
* Further changelog updates.
Co-authored-by: Roman Borschel <romanb@users.noreply.github.com>
Co-authored-by: Roman S. Borschel <roman@parity.io>
2020-12-03 13:30:52 +01:00
Max Inden
cbdbf656c0
protocols/mdns: Make libp2p-mdns socket agnostic ( #1699 )
...
Allow libp2p-mdns to use either async-std or tokio to drive required UDP
socket.
Co-authored-by: Roman Borschel <romanb@users.noreply.github.com>
2020-08-18 14:51:03 +02:00
vms
688aa5bc79
Move mdns ( #1458 )
...
* move mdns
* alphabetic ordering in Cargo.toml
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com>
2020-02-24 19:36:55 +01:00