Benign rust 2,599 installs Download

esp-hal-mdns 0.1.5

“Simple mdns lookup stack for esp-hal”

AArch64 (ARM64) architecture stringBacktick shell command-substitution syntax
SHA-2561050471a978efb28602d6f3272398083195c2fc0a4105a8c9d50a53ad256a92d
MaleculeH(Db)Md

Evidence

imports dns_protocol::Flags lib.rs · lines 1–9
1#![no_std]
2
3use dns_protocol::{Flags, LabelSegment, Message, Question, ResourceRecord, ResourceType};
4
5const MDNS_BUF_SIZE: usize = 4096;
⋯4 lines
English function-word token "for" lib.rs · lines 75–78
75:25… is_ans = true;
76
77 for seg in self.query_str.split(".") {
78 if let S …
Contains an unbounded block loop lib.rs · lines 97–102
97:36… a = add.data();
98 let mut offset = 0;
99 loop {
100 if offset >= data.len() {
101 break;
102 …
English function-word token "the" README.md · lines 1–48
1# esp-hal-mdns
2Simple library for mdns request's for esp-hal.
3
4## Example
5This exampleis using embassy-net, but you can use any non-async network stack.
6If you want to see full example, check `./examples` dir.
7
⋯12 lines
20_ = stack.join_multicast_group(ip_addr);
21
22// create mdns query struct with given label
23let mut mdns = MdnsQuery::new("_stackmat._tcp.local", 2500, || embassy_time::Instant::now().as_millis());
24
⋯15 lines
40 // response is (ip, port, Option<Txt-Value>)
41 if resp.2.is_some() {
42 // if txt value is found, break from the loop
43 break;
44 }
⋯4 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.