-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
base: master
Are you sure you want to change the base?
Conversation
a0fad63
to
138080d
Compare
@@ -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[] = { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
138080d
to
0e70548
Compare
f999a5e
to
bf80550
Compare
bf80550
to
1f4e115
Compare
Merging this ? |
No description provided.