Skip to content

Added MDNS and driver support for multicast #3093

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

robertc2000
Copy link
Collaborator

No description provided.

@robertc2000 robertc2000 requested review from scaprile and cpq April 9, 2025 10:18
@robertc2000 robertc2000 force-pushed the mdns-multicast branch 3 times, most recently from a0fad63 to 138080d Compare April 9, 2025 11:13
@@ -265,3 +276,74 @@ void mg_resolve(struct mg_connection *c, const char *url) {
mg_sendnsreq(c, &host, c->mgr->dnstimeout, dns, c->mgr->use_dns6);
}
}

#if MG_ENABLE_MDNS
static const uint8_t mdns_answer[] = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd declare this in the handler as a stack variable.

src/config.h Outdated
#endif

#if MG_ENABLE_TCPIP
#if MG_ENABLE_MDNS
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why those constants? I suggest to have MG_ENABLE_MDNS and MG_ENABLE_MCAST always enabled

@scaprile scaprile force-pushed the mdns-multicast branch 2 times, most recently from f999a5e to bf80550 Compare April 14, 2025 17:28
@cpq
Copy link
Member

cpq commented Apr 18, 2025

Merging this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants