forked from espressif/esp-protocols
Deploying to gh-pages from @ espressif/esp-protocols@b6852a0588 🚀
This commit is contained in:
1 parent
dea76f9021
commit
78ae83ea6b
48 files changed
+205
-360
No files matched your search
+1
-1
@@ -1,4 +1,4 @@
|
||||
# Sphinx build info version 1
|
||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: 7be5dfd2a68d10bff04dea39edfa1446
|
||||
config: 2aa1879729e335b9b300fd7cba2b2eb0
|
||||
tags: 549b3d6d0415232fb7e35403b330ff49
|
||||
@@ -326,7 +326,6 @@ p.sidebar-title {
|
||||
}
|
||||
nav.contents,
|
||||
aside.topic,
|
||||
|
||||
div.admonition, div.topic, blockquote {
|
||||
clear: left;
|
||||
}
|
||||
@@ -334,7 +333,6 @@ div.admonition, div.topic, blockquote {
|
||||
/* -- topics ---------------------------------------------------------------- */
|
||||
nav.contents,
|
||||
aside.topic,
|
||||
|
||||
div.topic {
|
||||
border: 1px solid #ccc;
|
||||
padding: 7px;
|
||||
@@ -375,7 +373,6 @@ div.sidebar > :last-child,
|
||||
aside.sidebar > :last-child,
|
||||
nav.contents > :last-child,
|
||||
aside.topic > :last-child,
|
||||
|
||||
div.topic > :last-child,
|
||||
div.admonition > :last-child {
|
||||
margin-bottom: 0;
|
||||
@@ -385,7 +382,6 @@ div.sidebar::after,
|
||||
aside.sidebar::after,
|
||||
nav.contents::after,
|
||||
aside.topic::after,
|
||||
|
||||
div.topic::after,
|
||||
div.admonition::after,
|
||||
blockquote::after {
|
||||
@@ -610,26 +606,6 @@ ol.simple p,
|
||||
ul.simple p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Docutils 0.17 and older (footnotes & citations) */
|
||||
dl.footnote > dt,
|
||||
dl.citation > dt {
|
||||
float: left;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
dl.footnote > dd,
|
||||
dl.citation > dd {
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
|
||||
dl.footnote > dd:after,
|
||||
dl.citation > dd:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* Docutils 0.18+ (footnotes & citations) */
|
||||
aside.footnote > span,
|
||||
div.citation > span {
|
||||
float: left;
|
||||
@@ -654,8 +630,6 @@ div.citation > p:last-of-type:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* Footnotes & citations ends */
|
||||
|
||||
dl.field-list {
|
||||
display: grid;
|
||||
grid-template-columns: fit-content(30%) auto;
|
||||
@@ -668,10 +642,6 @@ dl.field-list > dt {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
dl.field-list > dt:after {
|
||||
content: ":";
|
||||
}
|
||||
|
||||
dl.field-list > dd {
|
||||
padding-left: 0.5em;
|
||||
margin-top: 0em;
|
||||
|
||||
@@ -10,5 +10,5 @@ var DOCUMENTATION_OPTIONS = {
|
||||
SOURCELINK_SUFFIX: '.txt',
|
||||
NAVIGATION_WITH_KEYS: false,
|
||||
SHOW_SEARCH_SUMMARY: true,
|
||||
ENABLE_SEARCH_SHORTCUTS: false,
|
||||
ENABLE_SEARCH_SHORTCUTS: true,
|
||||
};
|
||||
@@ -88,7 +88,7 @@ const _displayItem = (item, highlightTerms, searchTerms) => {
|
||||
linkEl.href = linkUrl + "?" + params.toString() + anchor;
|
||||
linkEl.innerHTML = title;
|
||||
if (descr)
|
||||
listItem.appendChild(document.createElement("span")).innerText =
|
||||
listItem.appendChild(document.createElement("span")).innerHTML =
|
||||
" (" + descr + ")";
|
||||
else if (showSearchSummary)
|
||||
fetch(requestUrl)
|
||||
@@ -155,10 +155,8 @@ const Search = {
|
||||
_pulse_status: -1,
|
||||
|
||||
htmlToText: (htmlString) => {
|
||||
const htmlElement = document
|
||||
.createRange()
|
||||
.createContextualFragment(htmlString);
|
||||
_removeChildren(htmlElement.querySelectorAll(".headerlink"));
|
||||
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
|
||||
htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() });
|
||||
const docContent = htmlElement.querySelector('[role="main"]');
|
||||
if (docContent !== undefined) return docContent.textContent;
|
||||
console.warn(
|
||||
@@ -504,11 +502,12 @@ const Search = {
|
||||
* latter for highlighting it.
|
||||
*/
|
||||
makeSearchSummary: (htmlText, keywords, highlightWords) => {
|
||||
const text = Search.htmlToText(htmlText).toLowerCase();
|
||||
const text = Search.htmlToText(htmlText);
|
||||
if (text === "") return null;
|
||||
|
||||
const textLower = text.toLowerCase();
|
||||
const actualStartPosition = [...keywords]
|
||||
.map((k) => text.indexOf(k.toLowerCase()))
|
||||
.map((k) => textLower.indexOf(k.toLowerCase()))
|
||||
.filter((i) => i > -1)
|
||||
.slice(-1)[0];
|
||||
const startWithContext = Math.max(actualStartPosition - 120, 0);
|
||||
@@ -516,9 +515,9 @@ const Search = {
|
||||
const top = startWithContext === 0 ? "" : "...";
|
||||
const tail = startWithContext + 240 < text.length ? "..." : "";
|
||||
|
||||
let summary = document.createElement("div");
|
||||
let summary = document.createElement("p");
|
||||
summary.classList.add("context");
|
||||
summary.innerText = top + text.substr(startWithContext, 240).trim() + tail;
|
||||
summary.textContent = top + text.substr(startWithContext, 240).trim() + tail;
|
||||
|
||||
highlightWords.forEach((highlightWord) =>
|
||||
_highlightText(summary, highlightWord, "highlighted")
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>Index</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
<a href="https://github.com/espressif/esp-protocols/blob/d1129f3/docs/en/genindex" class="fa fa-github"> Edit on GitHub</a>
|
||||
<a href="https://github.com/espressif/esp-protocols/blob/b6852a0/docs/en/genindex" class="fa fa-github"> Edit on GitHub</a>
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
|
||||
+3
-3
@@ -115,7 +115,7 @@
|
||||
<li><a href="#" class="icon icon-home"></a> »</li>
|
||||
<li>mDNS Service</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
<a href="https://github.com/espressif/esp-protocols/blob/d1129f3/docs/en/index.rst" class="fa fa-github"> Edit on GitHub</a>
|
||||
<a href="https://github.com/espressif/esp-protocols/blob/b6852a0/docs/en/index.rst" class="fa fa-github"> Edit on GitHub</a>
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
@@ -318,14 +318,14 @@
|
||||
</section>
|
||||
<section id="application-example">
|
||||
<h2>Application Example<a class="headerlink" href="#application-example" title="Permalink to this heading"></a></h2>
|
||||
<p>mDNS server/scanner example: <a class="reference external" href="https://github.com/espressif/esp-protocols/tree/d1129f3/examples/../examples"></a>.</p>
|
||||
<p>mDNS server/scanner example: <a class="reference external" href="https://github.com/espressif/esp-protocols/tree/b6852a0/examples/../examples"></a>.</p>
|
||||
</section>
|
||||
<section id="api-reference">
|
||||
<h2>API Reference<a class="headerlink" href="#api-reference" title="Permalink to this heading"></a></h2>
|
||||
<section id="header-file">
|
||||
<h3>Header File<a class="headerlink" href="#header-file" title="Permalink to this heading"></a></h3>
|
||||
<ul class="simple">
|
||||
<li><p><a class="reference external" href="https://github.com/espressif/esp-protocols/blob/d1129f3/include/mdns.h">include/mdns.h</a></p></li>
|
||||
<li><p><a class="reference external" href="https://github.com/espressif/esp-protocols/blob/b6852a0/include/mdns.h">include/mdns.h</a></p></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="functions">
|
||||
|
||||
@@ -1 +1 @@
|
||||
Search.setIndex({"docnames": ["index"], "filenames": ["index.rst"], "titles": ["mDNS Service"], "terms": {"\u4e2d\u6587": 0, "multicast": 0, "udp": 0, "us": 0, "provid": 0, "local": 0, "network": 0, "host": 0, "discoveri": 0, "instal": 0, "default": 0, "most": 0, "oper": 0, "system": 0, "avail": 0, "separ": 0, "packag": 0, "On": 0, "mac": 0, "os": 0, "call": 0, "bonjour": 0, "appl": 0, "releas": 0, "an": 0, "window": 0, "can": 0, "found": 0, "s": 0, "support": 0, "page": 0, "linux": 0, "avahi": 0, "usual": 0, "hostnam": 0, "devic": 0, "respond": 0, "If": 0, "set": 0, "read": 0, "from": 0, "interfac": 0, "my": 0, "esp32": 0, "resolv": 0, "default_inst": 0, "friendli": 0, "name": 0, "your": 0, "like": 0, "jhon": 0, "thing": 0, "method": 0, "start": 0, "sta": 0, "void": 0, "start_mdns_servic": 0, "initi": 0, "esp_err_t": 0, "err": 0, "mdns_init": 0, "printf": 0, "init": 0, "fail": 0, "d": 0, "n": 0, "return": 0, "mdns_hostname_set": 0, "instanc": 0, "mdns_instance_name_set": 0, "advertis": 0, "inform": 0, "about": 0, "offer": 0, "each": 0, "defin": 0, "few": 0, "instance_nam": 0, "eesp32": 0, "web": 0, "server": 0, "service_typ": 0, "requir": 0, "prepend": 0, "underscor": 0, "some": 0, "common": 0, "here": 0, "proto": 0, "protocol": 0, "run": 0, "_tcp": 0, "_udp": 0, "port": 0, "txt": 0, "var": 0, "val": 0, "arrai": 0, "string": 0, "add": 0, "differ": 0, "add_mdns_servic": 0, "our": 0, "mdns_service_add": 0, "null": 0, "_http": 0, "80": 0, "0": 0, "_arduino": 0, "3232": 0, "_myservic": 0, "1234": 0, "note": 0, "must": 0, "ad": 0, "befor": 0, "custom": 0, "mdns_service_instance_name_set": 0, "mdns_txt_item_t": 0, "servicetxtdata": 0, "3": 0, "board": 0, "u": 0, "user": 0, "p": 0, "password": 0, "data": 0, "free": 0, "replac": 0, "current": 0, "mdns_service_txt_set": 0, "chang": 0, "mdns_service_port_set": 0, "4321": 0, "brows": 0, "ip": 0, "ipv6": 0, "address": 0, "result": 0, "ar": 0, "link": 0, "list": 0, "mdns_result_t": 0, "object": 0, "resolve_mdns_host": 0, "const": 0, "char": 0, "host_nam": 0, "A": 0, "struct": 0, "ip4_addr": 0, "addr": 0, "mdns_query_a": 0, "2000": 0, "esp_err_not_found": 0, "wa": 0, "ipstr": 0, "ip2str": 0, "static": 0, "if_str": 0, "ap": 0, "eth": 0, "max": 0, "ip_protocol_str": 0, "v4": 0, "v6": 0, "mdns_print_result": 0, "r": 0, "mdns_ip_addr_t": 0, "int": 0, "i": 0, "1": 0, "t": 0, "while": 0, "tcpip_if": 0, "ip_protocol": 0, "ptr": 0, "srv": 0, "txt_count": 0, "kei": 0, "valu": 0, "ipaddr_type_v6": 0, "aaaa": 0, "ipv6str": 0, "ipv62str": 0, "u_addr": 0, "ip6": 0, "els": 0, "ip4": 0, "next": 0, "find_mdns_servic": 0, "service_nam": 0, "esp_log": 0, "tag": 0, "mdns_query_ptr": 0, "3000": 0, "20": 0, "esp_logw": 0, "No": 0, "mdns_query_results_fre": 0, "abov": 0, "my_app_some_method": 0, "search": 0, "http": 0, "_smb": 0, "share": 0, "_afpovertcp": 0, "_nf": 0, "nf": 0, "_ftp": 0, "ftp": 0, "printer": 0, "_printer": 0, "_ipp": 0, "creat": 0, "task": 0, "low": 0, "prioriti": 0, "config_mdns_task_prior": 0, "config_freertos_unicor": 0, "enabel": 0, "pin": 0, "cpu0": 0, "config_mdns_task_affin": 0, "pleas": 0, "check": 0, "maxim": 0, "more": 0, "detail": 0, "stack": 0, "size": 0, "configur": 0, "config_mdns_task_stack_s": 0, "scanner": 0, "includ": 0, "h": 0, "given": 0, "esp_ok": 0, "success": 0, "esp_err_invalid_st": 0, "when": 0, "regist": 0, "event": 0, "handler": 0, "esp_err_no_mem": 0, "memori": 0, "error": 0, "esp_fail": 0, "mdns_free": 0, "stop": 0, "you": 0, "want": 0, "paramet": 0, "esp_err_invalid_arg": 0, "mdns_delegate_hostname_add": 0, "address_list": 0, "deleg": 0, "repli": 0, "thi": 0, "The": 0, "mdns_delegate_hostname_remov": 0, "remov": 0, "all": 0, "also": 0, "bool": 0, "mdns_hostname_exist": 0, "whether": 0, "ha": 0, "been": 0, "true": 0, "fals": 0, "uint16_t": 0, "size_t": 0, "num_item": 0, "length": 0, "item": 0, "automat": 0, "decid": 0, "strlen": 0, "global": 0, "mdns_multiple_inst": 0, "config": 0, "option": 0, "need": 0, "enabl": 0, "multipl": 0, "same": 0, "etc": 0, "eg": 0, "other": 0, "2": 0, "number": 0, "mdns_service_add_for_host": 0, "mdns_service_exist": 0, "correspond": 0, "mdns_service_exists_with_inst": 0, "mdns_service_remov": 0, "mdns_service_remove_for_host": 0, "mdns_service_instance_name_set_for_host": 0, "instance_old": 0, "origin": 0, "mdns_service_port_set_for_host": 0, "uint8_t": 0, "mdns_service_txt_set_for_host": 0, "mdns_service_txt_item_set": 0, "record": 0, "updat": 0, "new": 0, "mdns_service_txt_item_set_with_explicit_value_len": 0, "value_len": 0, "mdns_service_txt_item_set_for_host": 0, "mdns_service_txt_item_set_for_host_with_explicit_value_len": 0, "mdns_service_txt_item_remov": 0, "mdns_service_txt_item_remove_for_host": 0, "mdns_service_subtype_add_for_host": 0, "subtyp": 0, "find": 0, "first": 0, "mdns_service_remove_al": 0, "mdns_query_async_delet": 0, "mdns_search_once_t": 0, "delet": 0, "finish": 0, "onli": 0, "after": 0, "end": 0, "pointer": 0, "mdns_query_async_get_result": 0, "uint32_t": 0, "timeout": 0, "num_result": 0, "Line truncated
|
||||
Search.setIndex({"docnames": ["index"], "filenames": ["index.rst"], "titles": ["mDNS Service"], "terms": {"\u4e2d\u6587": 0, "i": 0, "multicast": 0, "udp": 0, "us": 0, "provid": 0, "local": 0, "network": 0, "host": 0, "discoveri": 0, "instal": 0, "default": 0, "most": 0, "oper": 0, "system": 0, "avail": 0, "separ": 0, "packag": 0, "On": 0, "mac": 0, "o": 0, "call": 0, "bonjour": 0, "appl": 0, "releas": 0, "an": 0, "window": 0, "can": 0, "found": 0, "": 0, "support": 0, "page": 0, "linux": 0, "avahi": 0, "usual": 0, "hostnam": 0, "devic": 0, "respond": 0, "If": 0, "set": 0, "read": 0, "from": 0, "interfac": 0, "my": 0, "esp32": 0, "resolv": 0, "default_inst": 0, "friendli": 0, "name": 0, "your": 0, "like": 0, "jhon": 0, "thing": 0, "method": 0, "start": 0, "sta": 0, "void": 0, "start_mdns_servic": 0, "initi": 0, "esp_err_t": 0, "err": 0, "mdns_init": 0, "printf": 0, "init": 0, "fail": 0, "d": 0, "n": 0, "return": 0, "mdns_hostname_set": 0, "instanc": 0, "mdns_instance_name_set": 0, "advertis": 0, "inform": 0, "about": 0, "offer": 0, "each": 0, "defin": 0, "few": 0, "instance_nam": 0, "eesp32": 0, "web": 0, "server": 0, "service_typ": 0, "requir": 0, "prepend": 0, "underscor": 0, "some": 0, "common": 0, "here": 0, "proto": 0, "protocol": 0, "run": 0, "_tcp": 0, "_udp": 0, "port": 0, "txt": 0, "var": 0, "val": 0, "arrai": 0, "string": 0, "add": 0, "differ": 0, "add_mdns_servic": 0, "our": 0, "mdns_service_add": 0, "null": 0, "_http": 0, "80": 0, "0": 0, "_arduino": 0, "3232": 0, "_myservic": 0, "1234": 0, "note": 0, "must": 0, "ad": 0, "befor": 0, "custom": 0, "mdns_service_instance_name_set": 0, "mdns_txt_item_t": 0, "servicetxtdata": 0, "3": 0, "board": 0, "u": 0, "user": 0, "p": 0, "password": 0, "data": 0, "free": 0, "replac": 0, "current": 0, "mdns_service_txt_set": 0, "chang": 0, "mdns_service_port_set": 0, "4321": 0, "brows": 0, "ip": 0, "ipv6": 0, "address": 0, "result": 0, "ar": 0, "link": 0, "list": 0, "mdns_result_t": 0, "object": 0, "resolve_mdns_host": 0, "const": 0, "char": 0, "host_nam": 0, "A": 0, "struct": 0, "ip4_addr": 0, "addr": 0, "mdns_query_a": 0, "2000": 0, "esp_err_not_found": 0, "wa": 0, "ipstr": 0, "ip2str": 0, "static": 0, "if_str": 0, "ap": 0, "eth": 0, "max": 0, "ip_protocol_str": 0, "v4": 0, "v6": 0, "mdns_print_result": 0, "r": 0, "mdns_ip_addr_t": 0, "int": 0, "1": 0, "t": 0, "while": 0, "tcpip_if": 0, "ip_protocol": 0, "ptr": 0, "srv": 0, "txt_count": 0, "kei": 0, "valu": 0, "ipaddr_type_v6": 0, "aaaa": 0, "ipv6str": 0, "ipv62str": 0, "u_addr": 0, "ip6": 0, "els": 0, "ip4": 0, "next": 0, "find_mdns_servic": 0, "service_nam": 0, "esp_logi": 0, "tag": 0, "mdns_query_ptr": 0, "3000": 0, "20": 0, "esp_log": 0, "esp_logw": 0, "No": 0, "mdns_query_results_fre": 0, "abov": 0, "my_app_some_method": 0, "search": 0, "http": 0, "_smb": 0, "share": 0, "_afpovertcp": 0, "_nf": 0, "nf": 0, "_ftp": 0, "ftp": 0, "printer": 0, "_printer": 0, "_ipp": 0, "creat": 0, "task": 0, "low": 0, "prioriti": 0, "config_mdns_task_prior": 0, "config_freertos_unicor": 0, "enabel": 0, "pin": 0, "cpu0": 0, "config_mdns_task_affin": 0, "pleas": 0, "check": 0, "maxim": 0, "more": 0, "detail": 0, "stack": 0, "size": 0, "configur": 0, "config_mdns_task_stack_s": 0, "scanner": 0, "includ": 0, "h": 0, "given": 0, "esp_ok": 0, "success": 0, "esp_err_invalid_st": 0, "when": 0, "regist": 0, "event": 0, "handler": 0, "esp_err_no_mem": 0, "memori": 0, "error": 0, "esp_fail": 0, "mdns_free": 0, "stop": 0, "you": 0, "want": 0, "paramet": 0, "esp_err_invalid_arg": 0, "mdns_delegate_hostname_add": 0, "address_list": 0, "deleg": 0, "repli": 0, "thi": 0, "The": 0, "mdns_delegate_hostname_remov": 0, "remov": 0, "all": 0, "also": 0, "bool": 0, "mdns_hostname_exist": 0, "whether": 0, "ha": 0, "been": 0, "true": 0, "fals": 0, "uint16_t": 0, "size_t": 0, "num_item": 0, "length": 0, "item": 0, "automat": 0, "decid": 0, "strlen": 0, "global": 0, "mdns_multiple_inst": 0, "config": 0, "option": 0, "need": 0, "enabl": 0, "multipl": 0, "same": 0, "etc": 0, "eg": 0, "other": 0, "2": 0, "number": 0, "mdns_service_add_for_host": 0, "mdns_service_exist": 0, "correspond": 0, "mdns_service_exists_with_inst": 0, "mdns_service_remov": 0, "mdns_service_remove_for_host": 0, "mdns_service_instance_name_set_for_host": 0, "instance_old": 0, "origin": 0, "mdns_service_port_set_for_host": 0, "uint8_t": 0, "mdns_service_txt_set_for_host": 0, "mdns_service_txt_item_set": 0, "record": 0, "updat": 0, "new": 0, "mdns_service_txt_item_set_with_explicit_value_len": 0, "value_len": 0, "mdns_service_txt_item_set_for_host": 0, "mdns_service_txt_item_set_for_host_with_explicit_value_len": 0, "mdns_service_txt_item_remov": 0, "mdns_service_txt_item_remove_for_host": 0, "mdns_service_subtype_add_for_host": 0, "subtyp": 0, "find": 0, "first": 0, "mdns_service_remove_al": 0, "mdns_query_async_delet": 0, "mdns_search_once_t": 0, "delet": 0, "finish": 0, "onli": 0, "after": 0, "end": 0, "pointer": 0, "mdns_query_async_get_result": 0, "uint32_t": 0, "timeout": 0, "num_Line truncated
|
||||
@@ -1,4 +1,4 @@
|
||||
# Sphinx build info version 1
|
||||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
||||
config: 5e10890f2c559bf6aac27aaee70c10f7
|
||||
config: 23d18dea2ad85b14076356945260b6ad
|
||||
tags: 549b3d6d0415232fb7e35403b330ff49
|
||||
@@ -326,7 +326,6 @@ p.sidebar-title {
|
||||
}
|
||||
nav.contents,
|
||||
aside.topic,
|
||||
|
||||
div.admonition, div.topic, blockquote {
|
||||
clear: left;
|
||||
}
|
||||
@@ -334,7 +333,6 @@ div.admonition, div.topic, blockquote {
|
||||
/* -- topics ---------------------------------------------------------------- */
|
||||
nav.contents,
|
||||
aside.topic,
|
||||
|
||||
div.topic {
|
||||
border: 1px solid #ccc;
|
||||
padding: 7px;
|
||||
@@ -375,7 +373,6 @@ div.sidebar > :last-child,
|
||||
aside.sidebar > :last-child,
|
||||
nav.contents > :last-child,
|
||||
aside.topic > :last-child,
|
||||
|
||||
div.topic > :last-child,
|
||||
div.admonition > :last-child {
|
||||
margin-bottom: 0;
|
||||
@@ -385,7 +382,6 @@ div.sidebar::after,
|
||||
aside.sidebar::after,
|
||||
nav.contents::after,
|
||||
aside.topic::after,
|
||||
|
||||
div.topic::after,
|
||||
div.admonition::after,
|
||||
blockquote::after {
|
||||
@@ -610,26 +606,6 @@ ol.simple p,
|
||||
ul.simple p {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* Docutils 0.17 and older (footnotes & citations) */
|
||||
dl.footnote > dt,
|
||||
dl.citation > dt {
|
||||
float: left;
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
dl.footnote > dd,
|
||||
dl.citation > dd {
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
|
||||
dl.footnote > dd:after,
|
||||
dl.citation > dd:after {
|
||||
content: "";
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* Docutils 0.18+ (footnotes & citations) */
|
||||
aside.footnote > span,
|
||||
div.citation > span {
|
||||
float: left;
|
||||
@@ -654,8 +630,6 @@ div.citation > p:last-of-type:after {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
/* Footnotes & citations ends */
|
||||
|
||||
dl.field-list {
|
||||
display: grid;
|
||||
grid-template-columns: fit-content(30%) auto;
|
||||
@@ -668,10 +642,6 @@ dl.field-list > dt {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
dl.field-list > dt:after {
|
||||
content: ":";
|
||||
}
|
||||
|
||||
dl.field-list > dd {
|
||||
padding-left: 0.5em;
|
||||
margin-top: 0em;
|
||||
|
||||
@@ -10,5 +10,5 @@ var DOCUMENTATION_OPTIONS = {
|
||||
SOURCELINK_SUFFIX: '.txt',
|
||||
NAVIGATION_WITH_KEYS: false,
|
||||
SHOW_SEARCH_SUMMARY: true,
|
||||
ENABLE_SEARCH_SHORTCUTS: false,
|
||||
ENABLE_SEARCH_SHORTCUTS: true,
|
||||
};
|
||||
@@ -88,7 +88,7 @@ const _displayItem = (item, highlightTerms, searchTerms) => {
|
||||
linkEl.href = linkUrl + "?" + params.toString() + anchor;
|
||||
linkEl.innerHTML = title;
|
||||
if (descr)
|
||||
listItem.appendChild(document.createElement("span")).innerText =
|
||||
listItem.appendChild(document.createElement("span")).innerHTML =
|
||||
" (" + descr + ")";
|
||||
else if (showSearchSummary)
|
||||
fetch(requestUrl)
|
||||
@@ -155,10 +155,8 @@ const Search = {
|
||||
_pulse_status: -1,
|
||||
|
||||
htmlToText: (htmlString) => {
|
||||
const htmlElement = document
|
||||
.createRange()
|
||||
.createContextualFragment(htmlString);
|
||||
_removeChildren(htmlElement.querySelectorAll(".headerlink"));
|
||||
const htmlElement = new DOMParser().parseFromString(htmlString, 'text/html');
|
||||
htmlElement.querySelectorAll(".headerlink").forEach((el) => { el.remove() });
|
||||
const docContent = htmlElement.querySelector('[role="main"]');
|
||||
if (docContent !== undefined) return docContent.textContent;
|
||||
console.warn(
|
||||
@@ -504,11 +502,12 @@ const Search = {
|
||||
* latter for highlighting it.
|
||||
*/
|
||||
makeSearchSummary: (htmlText, keywords, highlightWords) => {
|
||||
const text = Search.htmlToText(htmlText).toLowerCase();
|
||||
const text = Search.htmlToText(htmlText);
|
||||
if (text === "") return null;
|
||||
|
||||
const textLower = text.toLowerCase();
|
||||
const actualStartPosition = [...keywords]
|
||||
.map((k) => text.indexOf(k.toLowerCase()))
|
||||
.map((k) => textLower.indexOf(k.toLowerCase()))
|
||||
.filter((i) => i > -1)
|
||||
.slice(-1)[0];
|
||||
const startWithContext = Math.max(actualStartPosition - 120, 0);
|
||||
@@ -516,9 +515,9 @@ const Search = {
|
||||
const top = startWithContext === 0 ? "" : "...";
|
||||
const tail = startWithContext + 240 < text.length ? "..." : "";
|
||||
|
||||
let summary = document.createElement("div");
|
||||
let summary = document.createElement("p");
|
||||
summary.classList.add("context");
|
||||
summary.innerText = top + text.substr(startWithContext, 240).trim() + tail;
|
||||
summary.textContent = top + text.substr(startWithContext, 240).trim() + tail;
|
||||
|
||||
highlightWords.forEach((highlightWord) =>
|
||||
_highlightText(summary, highlightWord, "highlighted")
|
||||
|
||||
@@ -4,50 +4,50 @@ Documentation.addTranslations({
|
||||
"%(filename)s — %(docstitle)s": "%(filename)s — %(docstitle)s",
|
||||
"© <a href=\"%(path)s\">Copyright</a> %(copyright)s.": "© <a href=\"%(path)s\"> \u7248\u6743\u6240\u6709</a> %(copyright)s.",
|
||||
"© Copyright %(copyright)s.": "© \u7248\u6743\u6240\u6709 %(copyright)s.",
|
||||
", in ": "\uff0c \u5728 ",
|
||||
"About these documents": "\u5173\u4e8e\u8fd9\u4e9b\u6587\u6863",
|
||||
"Automatically generated list of changes in version %(version)s": "\u81ea\u52a8\u751f\u6210\u7684 %(version)s \u7248\u672c\u4e2d\u7684\u66f4\u6539\u5217\u8868",
|
||||
"C API changes": "C API \u66f4\u6539",
|
||||
"Changes in Version %(version)s — %(docstitle)s": "\u66f4\u6539\u53d1\u751f\u5728\u7248\u672c %(version)s— %(docstitle)s",
|
||||
", in ": "\uff0c\u5728 ",
|
||||
"About these documents": "\u5173\u4e8e\u6b64\u6587\u6863",
|
||||
"Automatically generated list of changes in version %(version)s": "\u81ea\u52a8\u751f\u6210\u7684 %(version)s \u7248\u672c\u53d8\u66f4\u5217\u8868",
|
||||
"C API changes": "C API \u7684\u53d8\u66f4",
|
||||
"Changes in Version %(version)s — %(docstitle)s": "\u4e8e\u7248\u672c %(version)s— %(docstitle)s \u53d8\u66f4",
|
||||
"Collapse sidebar": "\u6298\u53e0\u8fb9\u680f",
|
||||
"Complete Table of Contents": "\u5b8c\u6574\u7684\u5185\u5bb9\u8868",
|
||||
"Complete Table of Contents": "\u5b8c\u6574\u76ee\u5f55",
|
||||
"Contents": "\u76ee\u5f55",
|
||||
"Copyright": "\u7248\u6743\u6240\u6709",
|
||||
"Created using <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> %(sphinx_version)s.": "\u7531 <a href=\"https://www.sphinx-doc.org/\">Sphinx</a> %(sphinx_version)s\u521b\u5efa\u3002",
|
||||
"Expand sidebar": "\u5c55\u5f00\u8fb9\u680f",
|
||||
"Full index on one page": "\u4e00\u9875\u7684\u5168\u90e8\u7d22\u5f15",
|
||||
"General Index": "\u603b\u76ee\u5f55",
|
||||
"Full index on one page": "\u5355\u9875\u5168\u7d22\u5f15",
|
||||
"General Index": "\u603b\u7d22\u5f15",
|
||||
"Global Module Index": "\u5168\u5c40\u6a21\u5757\u7d22\u5f15",
|
||||
"Go": "\u8f6c\u5411",
|
||||
"Go": "\u63d0\u4ea4",
|
||||
"Hide Search Matches": "\u9690\u85cf\u641c\u7d22\u7ed3\u679c",
|
||||
"Index": "\u7d22\u5f15",
|
||||
"Index – %(key)s": "\u7d22\u5f15 – %(key)s",
|
||||
"Index pages by letter": "\u6309\u7167\u5b57\u6bcd\u7684\u7d22\u5f15\u9875",
|
||||
"Index pages by letter": "\u5b57\u6bcd\u7d22\u5f15",
|
||||
"Indices and tables:": "\u7d22\u5f15\u548c\u8868\u683c\uff1a",
|
||||
"Last updated on %(last_updated)s.": "\u6700\u540e\u66f4\u65b0\u4e8e %(last_updated)s.",
|
||||
"Library changes": "\u5e93\u66f4\u6539",
|
||||
"Library changes": "\u5e93\u7684\u53d8\u66f4",
|
||||
"Navigation": "\u5bfc\u822a",
|
||||
"Next topic": "\u4e0b\u4e00\u4e2a\u4e3b\u9898",
|
||||
"Other changes": "\u5176\u4ed6\u66f4\u6539",
|
||||
"Next topic": "\u4e0b\u4e00\u4e3b\u9898",
|
||||
"Other changes": "\u5176\u4ed6\u53d8\u66f4",
|
||||
"Overview": "\u6982\u8ff0",
|
||||
"Please activate JavaScript to enable the search\n functionality.": "\u8bf7\u6fc0\u6d3b JavaScript \u4ee5\u5f00\u542f\u641c\u7d22\u529f\u80fd\u3002",
|
||||
"Preparing search...": "\u51c6\u5907\u641c\u7d22\u2026\u2026",
|
||||
"Previous topic": "\u4e0a\u4e00\u4e2a\u4e3b\u9898",
|
||||
"Preparing search...": "\u6b63\u5728\u51c6\u5907\u641c\u7d22\u2026\u2026",
|
||||
"Previous topic": "\u4e0a\u4e00\u4e3b\u9898",
|
||||
"Quick search": "\u5feb\u901f\u641c\u7d22",
|
||||
"Search": "\u641c\u7d22",
|
||||
"Search Page": "\u641c\u7d22\u9875\u9762",
|
||||
"Search Results": "\u641c\u7d22\u7ed3\u679c",
|
||||
"Search finished, found ${resultCount} page(s) matching the search query.": "",
|
||||
"Search finished, found ${resultCount} page(s) matching the search query.": "\u641c\u7d22\u5b8c\u6210\uff0c\u5339\u914d\u5230 ${resultCount} \u9875\u3002",
|
||||
"Search within %(docstitle)s": "\u5728 %(docstitle)s \u4e2d\u641c\u7d22",
|
||||
"Searching": "\u641c\u7d22\u4e2d",
|
||||
"Searching for multiple words only shows matches that contain\n all words.": "\u641c\u5bfb\u5305\u542b\u591a\u4e2a\u5b57\u7684\u8bcd\u6c47\u65f6\uff0c\n \u53ea\u6709\u6240\u542b\u6240\u6709\u5185\u5bb9\u90fd\u5339\u914d\u65f6\u624d\u4f1a\u51fa\u73b0\u3002",
|
||||
"Searching": "\u6b63\u5728\u641c\u7d22\u4e2d",
|
||||
"Searching for multiple words only shows matches that contain\n all words.": "\u5f53\u641c\u7d22\u591a\u4e2a\u5173\u952e\u8bcd\u65f6\uff0c\u53ea\u4f1a\u663e\u793a\u540c\u65f6\u5305\u542b\u6240\u6709\u5173\u952e\u8bcd\u7684\u5185\u5bb9\u3002",
|
||||
"Show Source": "\u663e\u793a\u6e90\u4ee3\u7801",
|
||||
"Table of Contents": "\u76ee\u5f55",
|
||||
"This Page": "\u672c\u9875",
|
||||
"Welcome! This is": "\u6b22\u8fce\uff01\u8fd9\u662f",
|
||||
"Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories.": "\u6ca1\u6709\u4efb\u4f55\u6587\u6863\u5339\u914d\u60a8\u7684\u641c\u7d22\u3002\u8bf7\u786e\u4fdd\u4f60\u8f93\u5165\u7684\u8bcd\u62fc\u5199\u6b63\u786e\u5e76\u9009\u62e9\u4e86\u5408\u9002\u7684\u5206\u7c7b\u3002",
|
||||
"all functions, classes, terms": "\u6240\u7684\u51fd\u6570\uff0c\u7c7b\uff0c\u672f\u8bed",
|
||||
"can be huge": "\u53ef\u80fd\u4f1a\u5f88\u591a",
|
||||
"Welcome! This is": "\u6b22\u8fce\uff01",
|
||||
"Your search did not match any documents. Please make sure that all words are spelled correctly and that you've selected enough categories.": "\u60a8\u7684\u641c\u7d22\u6ca1\u6709\u5339\u914d\u5230\u6587\u6863\u3002\u8bf7\u786e\u4fdd\u5173\u952e\u8bcd\u62fc\u5199\u6b63\u786e\uff0c\u5e76\u4e14\u9009\u62e9\u4e86\u5408\u9002\u7684\u5206\u7c7b\u3002",
|
||||
"all functions, classes, terms": "\u6240\u6709\u51fd\u6570\u3001\u7c7b\u3001\u672f\u8bed\u8bcd\u6c47",
|
||||
"can be huge": "\u53ef\u80fd\u4f1a\u5927",
|
||||
"last updated": "\u6700\u540e\u66f4\u65b0\u4e8e",
|
||||
"lists all sections and subsections": "\u5217\u51fa\u6240\u6709\u7684\u7ae0\u8282\u548c\u90e8\u5206",
|
||||
"next chapter": "\u4e0b\u4e00\u7ae0",
|
||||
@@ -55,7 +55,7 @@ Documentation.addTranslations({
|
||||
"quick access to all modules": "\u5feb\u901f\u67e5\u770b\u6240\u6709\u7684\u6a21\u5757",
|
||||
"search": "\u641c\u7d22",
|
||||
"search this documentation": "\u641c\u7d22\u6587\u6863",
|
||||
"the documentation for": "\u8fd9\u4efd\u6587\u6863\u662f"
|
||||
"the documentation for": "\u672c\u6587\u6863\u5c5e\u4e8e"
|
||||
},
|
||||
"plural_expr": "0"
|
||||
});
|
||||
+87
-87
@@ -91,7 +91,7 @@
|
||||
<li><a href="index.html" class="icon icon-home"></a> »</li>
|
||||
<li>索引</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
<a href="https://github.com/espressif/esp-protocols/blob/d1129f3/docs/zh_CN/genindex" class="fa fa-github"> 在 GitHub 上修改</a>
|
||||
<a href="https://github.com/espressif/esp-protocols/blob/b6852a0/docs/zh_CN/genindex" class="fa fa-github"> 在 GitHub 上修改</a>
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
@@ -109,179 +109,179 @@
|
||||
<h2 id="M">M</h2>
|
||||
<table style="width: 100%" class="indextable genindextable"><tr>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="index.html#_CPPv426mdns_delegate_hostname_addPKcPK14mdns_ip_addr_t">mdns_delegate_hostname_add (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv426mdns_delegate_hostname_addPKcPK14mdns_ip_addr_t">mdns_delegate_hostname_add(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv429mdns_delegate_hostname_removePKc">mdns_delegate_hostname_remove (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv429mdns_delegate_hostname_removePKc">mdns_delegate_hostname_remove(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv420mdns_event_actions_t">mdns_event_actions_t (C++ enum)</a>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t23MDNS_EVENT_ANNOUNCE_IP4E">mdns_event_actions_t::MDNS_EVENT_ANNOUNCE_IP4(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t23MDNS_EVENT_ANNOUNCE_IP4E">mdns_event_actions_t::MDNS_EVENT_ANNOUNCE_IP4 (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t23MDNS_EVENT_ANNOUNCE_IP6E">mdns_event_actions_t::MDNS_EVENT_ANNOUNCE_IP6(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t23MDNS_EVENT_ANNOUNCE_IP6E">mdns_event_actions_t::MDNS_EVENT_ANNOUNCE_IP6 (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t22MDNS_EVENT_DISABLE_IP4E">mdns_event_actions_t::MDNS_EVENT_DISABLE_IP4(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t22MDNS_EVENT_DISABLE_IP4E">mdns_event_actions_t::MDNS_EVENT_DISABLE_IP4 (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t22MDNS_EVENT_DISABLE_IP6E">mdns_event_actions_t::MDNS_EVENT_DISABLE_IP6(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t22MDNS_EVENT_DISABLE_IP6E">mdns_event_actions_t::MDNS_EVENT_DISABLE_IP6 (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t21MDNS_EVENT_ENABLE_IP4E">mdns_event_actions_t::MDNS_EVENT_ENABLE_IP4(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t21MDNS_EVENT_ENABLE_IP4E">mdns_event_actions_t::MDNS_EVENT_ENABLE_IP4 (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t21MDNS_EVENT_ENABLE_IP6E">mdns_event_actions_t::MDNS_EVENT_ENABLE_IP6(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N20mdns_event_actions_t21MDNS_EVENT_ENABLE_IP6E">mdns_event_actions_t::MDNS_EVENT_ENABLE_IP6 (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv420mdns_event_actions_t">mdns_event_actions_t(C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv49mdns_freev">mdns_free (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv49mdns_freev">mdns_free(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv420mdns_hostname_existsPKc">mdns_hostname_exists (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv420mdns_hostname_existsPKc">mdns_hostname_exists(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv417mdns_hostname_setPKc">mdns_hostname_set (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv417mdns_hostname_setPKc">mdns_hostname_set(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv49mdns_initv">mdns_init (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv49mdns_initv">mdns_init(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv422mdns_instance_name_setPKc">mdns_instance_name_set (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv422mdns_instance_name_setPKc">mdns_instance_name_set(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv414mdns_ip_addr_s">mdns_ip_addr_s (C++ struct)</a>
|
||||
<li><a href="index.html#_CPPv4N14mdns_ip_addr_s4addrE">mdns_ip_addr_s::addr(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N14mdns_ip_addr_s4addrE">mdns_ip_addr_s::addr (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N14mdns_ip_addr_s4nextE">mdns_ip_addr_s::next(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N14mdns_ip_addr_s4nextE">mdns_ip_addr_s::next (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv414mdns_ip_addr_s">mdns_ip_addr_s(C++ struct)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv414mdns_ip_addr_t">mdns_ip_addr_t (C++ type)</a>
|
||||
<li><a href="index.html#_CPPv414mdns_ip_addr_t">mdns_ip_addr_t(C++ type)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv418mdns_ip_protocol_t">mdns_ip_protocol_t (C++ enum)</a>
|
||||
<li><a href="index.html#_CPPv4N18mdns_ip_protocol_t20MDNS_IP_PROTOCOL_MAXE">mdns_ip_protocol_t::MDNS_IP_PROTOCOL_MAX(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N18mdns_ip_protocol_t20MDNS_IP_PROTOCOL_MAXE">mdns_ip_protocol_t::MDNS_IP_PROTOCOL_MAX (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv4N18mdns_ip_protocol_t19MDNS_IP_PROTOCOL_V4E">mdns_ip_protocol_t::MDNS_IP_PROTOCOL_V4(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N18mdns_ip_protocol_t19MDNS_IP_PROTOCOL_V4E">mdns_ip_protocol_t::MDNS_IP_PROTOCOL_V4 (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv4N18mdns_ip_protocol_t19MDNS_IP_PROTOCOL_V6E">mdns_ip_protocol_t::MDNS_IP_PROTOCOL_V6(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N18mdns_ip_protocol_t19MDNS_IP_PROTOCOL_V6E">mdns_ip_protocol_t::MDNS_IP_PROTOCOL_V6 (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv418mdns_ip_protocol_t">mdns_ip_protocol_t(C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv417mdns_netif_actionP11esp_netif_t20mdns_event_actions_t">mdns_netif_action (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv417mdns_netif_actionP11esp_netif_t20mdns_event_actions_t">mdns_netif_action(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv410mdns_queryPKcPKcPKc8uint16_t8uint32_t6size_tPP13mdns_result_t">mdns_query (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv423mdns_query_async_deleteP18mdns_search_once_t">mdns_query_async_delete(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv412mdns_query_aPKc8uint32_tP14esp_ip4_addr_t">mdns_query_a (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv428mdns_query_async_get_resultsP18mdns_search_once_t8uint32_tPP13mdns_result_tP7uint8_t">mdns_query_async_get_results(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv423mdns_query_async_deleteP18mdns_search_once_t">mdns_query_async_delete (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv420mdns_query_async_newPKcPKcPKc8uint16_t8uint32_t6size_t19mdns_query_notify_t">mdns_query_async_new(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv428mdns_query_async_get_resultsP18mdns_search_once_t8uint32_tPP13mdns_result_tP7uint8_t">mdns_query_async_get_results (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv412mdns_query_aPKc8uint32_tP14esp_ip4_addr_t">mdns_query_a(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv420mdns_query_async_newPKcPKcPKc8uint16_t8uint32_t6size_t19mdns_query_notify_t">mdns_query_async_new (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv418mdns_query_genericPKcPKcPKc8uint16_t30mdns_query_transmission_type_t8uint32_t6size_tPP13mdns_result_t">mdns_query_generic(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv418mdns_query_genericPKcPKcPKc8uint16_t30mdns_query_transmission_type_t8uint32_t6size_tPP13mdns_result_t">mdns_query_generic (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv419mdns_query_notify_t">mdns_query_notify_t(C++ type)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv419mdns_query_notify_t">mdns_query_notify_t (C++ type)</a>
|
||||
<li><a href="index.html#_CPPv414mdns_query_ptrPKcPKc8uint32_t6size_tPP13mdns_result_t">mdns_query_ptr(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv414mdns_query_ptrPKcPKc8uint32_t6size_tPP13mdns_result_t">mdns_query_ptr (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv423mdns_query_results_freeP13mdns_result_t">mdns_query_results_free(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv423mdns_query_results_freeP13mdns_result_t">mdns_query_results_free (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv414mdns_query_srvPKcPKcPKc8uint32_tPP13mdns_result_t">mdns_query_srv(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv414mdns_query_srvPKcPKcPKc8uint32_tPP13mdns_result_t">mdns_query_srv (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv4N30mdns_query_transmission_type_t20MDNS_QUERY_MULTICASTE">mdns_query_transmission_type_t::MDNS_QUERY_MULTICAST(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv430mdns_query_transmission_type_t">mdns_query_transmission_type_t (C++ enum)</a>
|
||||
<li><a href="index.html#_CPPv4N30mdns_query_transmission_type_t18MDNS_QUERY_UNICASTE">mdns_query_transmission_type_t::MDNS_QUERY_UNICAST(C++ enumerator)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N30mdns_query_transmission_type_t20MDNS_QUERY_MULTICASTE">mdns_query_transmission_type_t::MDNS_QUERY_MULTICAST (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv430mdns_query_transmission_type_t">mdns_query_transmission_type_t(C++ enum)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N30mdns_query_transmission_type_t18MDNS_QUERY_UNICASTE">mdns_query_transmission_type_t::MDNS_QUERY_UNICAST (C++ enumerator)</a>
|
||||
<li><a href="index.html#_CPPv414mdns_query_txtPKcPKcPKc8uint32_tPP13mdns_result_t">mdns_query_txt(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv414mdns_query_txtPKcPKcPKc8uint32_tPP13mdns_result_t">mdns_query_txt (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv410mdns_queryPKcPKcPKc8uint16_t8uint32_t6size_tPP13mdns_result_t">mdns_query(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv419mdns_register_netifP11esp_netif_t">mdns_register_netif (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv419mdns_register_netifP11esp_netif_t">mdns_register_netif(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv413mdns_result_s">mdns_result_s (C++ struct)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s4addrE">mdns_result_s::addr(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s4addrE">mdns_result_s::addr (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s9esp_netifE">mdns_result_s::esp_netif(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s9esp_netifE">mdns_result_s::esp_netif (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s8hostnameE">mdns_result_s::hostname(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s8hostnameE">mdns_result_s::hostname (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s13instance_nameE">mdns_result_s::instance_name(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s13instance_nameE">mdns_result_s::instance_name (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s11ip_protocolE">mdns_result_s::ip_protocol(C++ member)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
<td style="width: 33%; vertical-align: top;"><ul>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s11ip_protocolE">mdns_result_s::ip_protocol (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s4nextE">mdns_result_s::next(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s4nextE">mdns_result_s::next (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s4portE">mdns_result_s::port(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s4portE">mdns_result_s::port (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s5protoE">mdns_result_s::proto(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s5protoE">mdns_result_s::proto (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s12service_typeE">mdns_result_s::service_type(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s12service_typeE">mdns_result_s::service_type (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s3ttlE">mdns_result_s::ttl(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s3ttlE">mdns_result_s::ttl (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s9txt_countE">mdns_result_s::txt_count(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s3txtE">mdns_result_s::txt (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s13txt_value_lenE">mdns_result_s::txt_value_len(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s9txt_countE">mdns_result_s::txt_count (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s3txtE">mdns_result_s::txt(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N13mdns_result_s13txt_value_lenE">mdns_result_s::txt_value_len (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv413mdns_result_s">mdns_result_s(C++ struct)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv413mdns_result_t">mdns_result_t (C++ type)</a>
|
||||
<li><a href="index.html#_CPPv413mdns_result_t">mdns_result_t(C++ type)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv418mdns_search_once_t">mdns_search_once_t (C++ type)</a>
|
||||
<li><a href="index.html#_CPPv418mdns_search_once_t">mdns_search_once_t(C++ type)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv416mdns_service_addPKcPKcPKc8uint16_tA_15mdns_txt_item_t6size_t">mdns_service_add (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv425mdns_service_add_for_hostPKcPKcPKcPKc8uint16_tA_15mdns_txt_item_t6size_t">mdns_service_add_for_host(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv425mdns_service_add_for_hostPKcPKcPKcPKc8uint16_tA_15mdns_txt_item_t6size_t">mdns_service_add_for_host (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv416mdns_service_addPKcPKcPKc8uint16_tA_15mdns_txt_item_t6size_t">mdns_service_add(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv419mdns_service_existsPKcPKcPKc">mdns_service_exists (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv433mdns_service_exists_with_instancePKcPKcPKcPKc">mdns_service_exists_with_instance(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv433mdns_service_exists_with_instancePKcPKcPKcPKc">mdns_service_exists_with_instance (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv419mdns_service_existsPKcPKcPKc">mdns_service_exists(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv430mdns_service_instance_name_setPKcPKcPKc">mdns_service_instance_name_set (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv439mdns_service_instance_name_set_for_hostPKcPKcPKcPKcPKc">mdns_service_instance_name_set_for_host(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv439mdns_service_instance_name_set_for_hostPKcPKcPKcPKcPKc">mdns_service_instance_name_set_for_host (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv430mdns_service_instance_name_setPKcPKcPKc">mdns_service_instance_name_set(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv421mdns_service_port_setPKcPKc8uint16_t">mdns_service_port_set (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv430mdns_service_port_set_for_hostPKcPKcPKcPKc8uint16_t">mdns_service_port_set_for_host(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv430mdns_service_port_set_for_hostPKcPKcPKcPKc8uint16_t">mdns_service_port_set_for_host (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv421mdns_service_port_setPKcPKc8uint16_t">mdns_service_port_set(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv419mdns_service_removePKcPKc">mdns_service_remove (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv423mdns_service_remove_allv">mdns_service_remove_all(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv423mdns_service_remove_allv">mdns_service_remove_all (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv428mdns_service_remove_for_hostPKcPKcPKcPKc">mdns_service_remove_for_host(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv428mdns_service_remove_for_hostPKcPKcPKcPKc">mdns_service_remove_for_host (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv419mdns_service_removePKcPKc">mdns_service_remove(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv433mdns_service_subtype_add_for_hostPKcPKcPKcPKcPKc">mdns_service_subtype_add_for_host (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv433mdns_service_subtype_add_for_hostPKcPKcPKcPKcPKc">mdns_service_subtype_add_for_host(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv428mdns_service_txt_item_removePKcPKcPKc">mdns_service_txt_item_remove (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv437mdns_service_txt_item_remove_for_hostPKcPKcPKcPKcPKc">mdns_service_txt_item_remove_for_host(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv437mdns_service_txt_item_remove_for_hostPKcPKcPKcPKcPKc">mdns_service_txt_item_remove_for_host (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv428mdns_service_txt_item_removePKcPKcPKc">mdns_service_txt_item_remove(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv425mdns_service_txt_item_setPKcPKcPKcPKc">mdns_service_txt_item_set (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv458mdns_service_txt_item_set_for_host_with_explicit_value_lenPKcPKcPKcPKcPKcPKc7uint8_t">mdns_service_txt_item_set_for_host_with_explicit_value_len(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv434mdns_service_txt_item_set_for_hostPKcPKcPKcPKcPKcPKc">mdns_service_txt_item_set_for_host (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv434mdns_service_txt_item_set_for_hostPKcPKcPKcPKcPKcPKc">mdns_service_txt_item_set_for_host(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv458mdns_service_txt_item_set_for_host_with_explicit_value_lenPKcPKcPKcPKcPKcPKc7uint8_t">mdns_service_txt_item_set_for_host_with_explicit_value_len (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv449mdns_service_txt_item_set_with_explicit_value_lenPKcPKcPKcPKc7uint8_t">mdns_service_txt_item_set_with_explicit_value_len(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv449mdns_service_txt_item_set_with_explicit_value_lenPKcPKcPKcPKc7uint8_t">mdns_service_txt_item_set_with_explicit_value_len (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv425mdns_service_txt_item_setPKcPKcPKcPKc">mdns_service_txt_item_set(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv420mdns_service_txt_setPKcPKcA_15mdns_txt_item_t7uint8_t">mdns_service_txt_set (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv429mdns_service_txt_set_for_hostPKcPKcPKcPKcA_15mdns_txt_item_t7uint8_t">mdns_service_txt_set_for_host(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv429mdns_service_txt_set_for_hostPKcPKcPKcPKcA_15mdns_txt_item_t7uint8_t">mdns_service_txt_set_for_host (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv420mdns_service_txt_setPKcPKcA_15mdns_txt_item_t7uint8_t">mdns_service_txt_set(C++ function)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv415mdns_txt_item_t">mdns_txt_item_t (C++ struct)</a>
|
||||
<li><a href="index.html#_CPPv4N15mdns_txt_item_t3keyE">mdns_txt_item_t::key(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N15mdns_txt_item_t3keyE">mdns_txt_item_t::key (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv4N15mdns_txt_item_t5valueE">mdns_txt_item_t::value(C++ member)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv4N15mdns_txt_item_t5valueE">mdns_txt_item_t::value (C++ member)</a>
|
||||
<li><a href="index.html#_CPPv415mdns_txt_item_t">mdns_txt_item_t(C++ struct)</a>
|
||||
</li>
|
||||
<li><a href="index.html#c.MDNS_TYPE_A">MDNS_TYPE_A (C macro)</a>
|
||||
<li><a href="index.html#c.MDNS_TYPE_AAAA">MDNS_TYPE_AAAA(C macro)</a>
|
||||
</li>
|
||||
<li><a href="index.html#c.MDNS_TYPE_AAAA">MDNS_TYPE_AAAA (C macro)</a>
|
||||
<li><a href="index.html#c.MDNS_TYPE_ANY">MDNS_TYPE_ANY(C macro)</a>
|
||||
</li>
|
||||
<li><a href="index.html#c.MDNS_TYPE_ANY">MDNS_TYPE_ANY (C macro)</a>
|
||||
<li><a href="index.html#c.MDNS_TYPE_A">MDNS_TYPE_A(C macro)</a>
|
||||
</li>
|
||||
<li><a href="index.html#c.MDNS_TYPE_NSEC">MDNS_TYPE_NSEC (C macro)</a>
|
||||
<li><a href="index.html#c.MDNS_TYPE_NSEC">MDNS_TYPE_NSEC(C macro)</a>
|
||||
</li>
|
||||
<li><a href="index.html#c.MDNS_TYPE_OPT">MDNS_TYPE_OPT (C macro)</a>
|
||||
<li><a href="index.html#c.MDNS_TYPE_OPT">MDNS_TYPE_OPT(C macro)</a>
|
||||
</li>
|
||||
<li><a href="index.html#c.MDNS_TYPE_PTR">MDNS_TYPE_PTR (C macro)</a>
|
||||
<li><a href="index.html#c.MDNS_TYPE_PTR">MDNS_TYPE_PTR(C macro)</a>
|
||||
</li>
|
||||
<li><a href="index.html#c.MDNS_TYPE_SRV">MDNS_TYPE_SRV (C macro)</a>
|
||||
<li><a href="index.html#c.MDNS_TYPE_SRV">MDNS_TYPE_SRV(C macro)</a>
|
||||
</li>
|
||||
<li><a href="index.html#c.MDNS_TYPE_TXT">MDNS_TYPE_TXT (C macro)</a>
|
||||
<li><a href="index.html#c.MDNS_TYPE_TXT">MDNS_TYPE_TXT(C macro)</a>
|
||||
</li>
|
||||
<li><a href="index.html#_CPPv421mdns_unregister_netifP11esp_netif_t">mdns_unregister_netif (C++ function)</a>
|
||||
<li><a href="index.html#_CPPv421mdns_unregister_netifP11esp_netif_t">mdns_unregister_netif(C++ function)</a>
|
||||
</li>
|
||||
</ul></td>
|
||||
</tr></table>
|
||||
|
||||
+16
-16
@@ -113,7 +113,7 @@
|
||||
<li><a href="#" class="icon icon-home"></a> »</li>
|
||||
<li>mDNS 服务</li>
|
||||
<li class="wy-breadcrumbs-aside">
|
||||
<a href="https://github.com/espressif/esp-protocols/blob/d1129f3/docs/zh_CN/index.rst" class="fa fa-github"> 在 GitHub 上修改</a>
|
||||
<a href="https://github.com/espressif/esp-protocols/blob/b6852a0/docs/zh_CN/index.rst" class="fa fa-github"> 在 GitHub 上修改</a>
|
||||
</li>
|
||||
</ul>
|
||||
<hr/>
|
||||
@@ -122,14 +122,14 @@
|
||||
<div itemprop="articleBody">
|
||||
|
||||
<section id="mdns">
|
||||
<h1>mDNS 服务<a class="headerlink" href="#mdns" title="Permalink to this heading"></a></h1>
|
||||
<h1>mDNS 服务<a class="headerlink" href="#mdns" title="此标题的永久链接"></a></h1>
|
||||
<p><a class="reference external" href="../../../en/latest/esp32/index.html">[English]</a></p>
|
||||
<section id="id1">
|
||||
<h2>概述<a class="headerlink" href="#id1" title="Permalink to this heading"></a></h2>
|
||||
<h2>概述<a class="headerlink" href="#id1" title="此标题的永久链接"></a></h2>
|
||||
<p>mDNS 是一种组播 UDP 服务,用来提供本地网络服务和主机发现。</p>
|
||||
<p>绝大多数的操作系统默认都会安装 mDNS 服务,或者提供单独的安装包。<code class="docutils literal notranslate"><span class="pre">Mac</span> <span class="pre">OS</span></code> 默认会安装名为 <code class="docutils literal notranslate"><span class="pre">Bonjour</span></code> 的服务(该服务基于 mDNS),此外 Apple 还发布了适用于 Windows 系统的安装程序,可以在 <a class="reference external" href="https://support.apple.com/downloads/bonjour%2520for%2520windows">官方支持</a> 找到。在 <code class="docutils literal notranslate"><span class="pre">Linux</span></code> 上,mDNS 服务由 <a class="reference external" href="https://github.com/lathiat/avahi">avahi</a> 提供,通常也会被默认安装。</p>
|
||||
<section id="id3">
|
||||
<h3>mDNS 属性<a class="headerlink" href="#id3" title="Permalink to this heading"></a></h3>
|
||||
<h3>mDNS 属性<a class="headerlink" href="#id3" title="此标题的永久链接"></a></h3>
|
||||
<blockquote>
|
||||
<div><ul class="simple">
|
||||
<li><p><code class="docutils literal notranslate"><span class="pre">hostname</span></code>:设备会去响应的主机名,如果没有设置,会根据设备的网络接口名定义 <code class="docutils literal notranslate"><span class="pre">hostname</span></code> 。例如,<code class="docutils literal notranslate"><span class="pre">my-esp32</span></code> 会被解析为 <code class="docutils literal notranslate"><span class="pre">my-esp32.local</span></code>。</p></li>
|
||||
@@ -155,7 +155,7 @@
|
||||
</div>
|
||||
</section>
|
||||
<section id="id4">
|
||||
<h3>mDNS 服务<a class="headerlink" href="#id4" title="Permalink to this heading"></a></h3>
|
||||
<h3>mDNS 服务<a class="headerlink" href="#id4" title="此标题的永久链接"></a></h3>
|
||||
<p>mDNS 可以广播设备能够提供的网络服务的相关信息,每个服务会由以下属性构成。</p>
|
||||
<blockquote>
|
||||
<div><ul class="simple">
|
||||
@@ -193,7 +193,7 @@
|
||||
</div>
|
||||
</section>
|
||||
<section id="id6">
|
||||
<h3>mDNS 查询<a class="headerlink" href="#id6" title="Permalink to this heading"></a></h3>
|
||||
<h3>mDNS 查询<a class="headerlink" href="#id6" title="此标题的永久链接"></a></h3>
|
||||
<p>mDNS 提供查询服务和解析主机 IP/IPv6 地址的方法。</p>
|
||||
<p>服务查询的结果会作为 <code class="docutils literal notranslate"><span class="pre">mdns_result_t</span></code> 类型对象的链表返回。</p>
|
||||
<p>解析主机 IP 地址的示例方法:</p>
|
||||
@@ -296,19 +296,19 @@
|
||||
</section>
|
||||
</section>
|
||||
<section id="id7">
|
||||
<h2>应用示例<a class="headerlink" href="#id7" title="Permalink to this heading"></a></h2>
|
||||
<p>有关 mDNS 服务器和查询器的应用示例请参考 <a class="reference external" href="https://github.com/espressif/esp-protocols/tree/d1129f3/examples/../examples"></a>。</p>
|
||||
<h2>应用示例<a class="headerlink" href="#id7" title="此标题的永久链接"></a></h2>
|
||||
<p>有关 mDNS 服务器和查询器的应用示例请参考 <a class="reference external" href="https://github.com/espressif/esp-protocols/tree/b6852a0/examples/../examples"></a>。</p>
|
||||
</section>
|
||||
<section id="api">
|
||||
<h2>API 参考<a class="headerlink" href="#api" title="Permalink to this heading"></a></h2>
|
||||
<h2>API 参考<a class="headerlink" href="#api" title="此标题的永久链接"></a></h2>
|
||||
<section id="header-file">
|
||||
<h3>Header File<a class="headerlink" href="#header-file" title="Permalink to this heading"></a></h3>
|
||||
<h3>Header File<a class="headerlink" href="#header-file" title="此标题的永久链接"></a></h3>
|
||||
<ul class="simple">
|
||||
<li><p><a class="reference external" href="https://github.com/espressif/esp-protocols/blob/d1129f3/include/mdns.h">include/mdns.h</a></p></li>
|
||||
<li><p><a class="reference external" href="https://github.com/espressif/esp-protocols/blob/b6852a0/include/mdns.h">include/mdns.h</a></p></li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="functions">
|
||||
<h3>Functions<a class="headerlink" href="#functions" title="Permalink to this heading"></a></h3>
|
||||
<h3>Functions<a class="headerlink" href="#functions" title="此标题的永久链接"></a></h3>
|
||||
<dl class="cpp function">
|
||||
<dt class="sig sig-object cpp" id="_CPPv49mdns_initv">
|
||||
<span id="_CPPv39mdns_initv"></span><span id="_CPPv29mdns_initv"></span><span id="mdns_init__void"></span><span class="target" id="mdns_8h_1ad323a4dfba3545c43ebda0f3f7c515e0"></span><span class="n"><span class="pre">esp_err_t</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">mdns_init</span></span></span><span class="sig-paren">(</span><span class="kt"><span class="pre">void</span></span><span class="sig-paren">)</span><a class="headerlink" href="#_CPPv49mdns_initv" title="永久链接至目标"></a><br /></dt>
|
||||
@@ -1251,7 +1251,7 @@
|
||||
|
||||
</section>
|
||||
<section id="structures">
|
||||
<h3>Structures<a class="headerlink" href="#structures" title="Permalink to this heading"></a></h3>
|
||||
<h3>Structures<a class="headerlink" href="#structures" title="此标题的永久链接"></a></h3>
|
||||
<dl class="cpp struct">
|
||||
<dt class="sig sig-object cpp" id="_CPPv415mdns_txt_item_t">
|
||||
<span id="_CPPv315mdns_txt_item_t"></span><span id="_CPPv215mdns_txt_item_t"></span><span id="mdns_txt_item_t"></span><span class="target" id="structmdns__txt__item__t"></span><span class="k"><span class="pre">struct</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">mdns_txt_item_t</span></span></span><a class="headerlink" href="#_CPPv415mdns_txt_item_t" title="永久链接至目标"></a><br /></dt>
|
||||
@@ -1383,7 +1383,7 @@
|
||||
|
||||
</section>
|
||||
<section id="macros">
|
||||
<h3>Macros<a class="headerlink" href="#macros" title="Permalink to this heading"></a></h3>
|
||||
<h3>Macros<a class="headerlink" href="#macros" title="此标题的永久链接"></a></h3>
|
||||
<dl class="cpp macro">
|
||||
<dt class="sig sig-object cpp" id="c.MDNS_TYPE_A">
|
||||
<span class="target" id="mdns_8h_1aadb9a175b672893b350f1e7032009e00"></span><span class="sig-name descname"><span class="n"><span class="pre">MDNS_TYPE_A</span></span></span><a class="headerlink" href="#c.MDNS_TYPE_A" title="永久链接至目标"></a><br /></dt>
|
||||
@@ -1426,7 +1426,7 @@
|
||||
|
||||
</section>
|
||||
<section id="type-definitions">
|
||||
<h3>Type Definitions<a class="headerlink" href="#type-definitions" title="Permalink to this heading"></a></h3>
|
||||
<h3>Type Definitions<a class="headerlink" href="#type-definitions" title="此标题的永久链接"></a></h3>
|
||||
<dl class="cpp type">
|
||||
<dt class="sig sig-object cpp" id="_CPPv418mdns_search_once_t">
|
||||
<span id="_CPPv318mdns_search_once_t"></span><span id="_CPPv218mdns_search_once_t"></span><span id="mdns_search_once_t"></span><span class="target" id="mdns_8h_1a8815240672c5880e798ca6655309c589"></span><span class="k"><span class="pre">typedef</span></span><span class="w"> </span><span class="k"><span class="pre">struct</span></span><span class="w"> </span><span class="n"><span class="pre">mdns_search_once_s</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">mdns_search_once_t</span></span></span><a class="headerlink" href="#_CPPv418mdns_search_once_t" title="永久链接至目标"></a><br /></dt>
|
||||
@@ -1452,7 +1452,7 @@
|
||||
|
||||
</section>
|
||||
<section id="enumerations">
|
||||
<h3>Enumerations<a class="headerlink" href="#enumerations" title="Permalink to this heading"></a></h3>
|
||||
<h3>Enumerations<a class="headerlink" href="#enumerations" title="此标题的永久链接"></a></h3>
|
||||
<dl class="cpp enum">
|
||||
<dt class="sig sig-object cpp" id="_CPPv420mdns_event_actions_t">
|
||||
<span id="_CPPv320mdns_event_actions_t"></span><span id="_CPPv220mdns_event_actions_t"></span><span class="target" id="mdns_8h_1a14279e8f2e7c65c12320222a55f09fdf"></span><span class="k"><span class="pre">enum</span></span><span class="w"> </span><span class="sig-name descname"><span class="n"><span class="pre">mdns_event_actions_t</span></span></span><a class="headerlink" href="#_CPPv420mdns_event_actions_t" title="永久链接至目标"></a><br /></dt>
|
||||
|
||||
@@ -1 +1 @@
|
||||
Search.setIndex({"docnames": ["index"], "filenames": ["index.rst"], "titles": ["mDNS \u670d\u52a1"], "terms": {"english": 0, "udp": 0, "mac": 0, "os": 0, "bonjour": 0, "appl": 0, "window": 0, "linux": 0, "avahi": 0, "hostnam": 0, "my": 0, "esp32": 0, "local": 0, "default_inst": 0, "jhon": 0, "thing": 0, "sta": 0, "void": 0, "start_mdns_servic": 0, "esp_err_t": 0, "err": 0, "mdns_init": 0, "if": 0, "printf": 0, "init": 0, "fail": 0, "return": 0, "mdns_hostname_set": 0, "mdns_instance_name_set": 0, "instance_nam": 0, "web": 0, "server": 0, "service_typ": 0, "proto": 0, "_tcp": 0, "_udp": 0, "port": 0, "txt": 0, "var": 0, "val": 0, "add_mdns_servic": 0, "mdns_service_add": 0, "null": 0, "_http": 0, "80": 0, "_arduino": 0, "3232": 0, "_myservic": 0, "1234": 0, "mdns_service_instance_name_set": 0, "mdns_txt_item_t": 0, "servicetxtdata": 0, "board": 0, "user": 0, "password": 0, "mdns_service_txt_set": 0, "mdns_service_port_set": 0, "4321": 0, "ip": 0, "ipv6": 0, "mdns_result_t": 0, "resolve_mdns_host": 0, "const": 0, "char": 0, "host_nam": 0, "queri": 0, "struct": 0, "ip4_addr": 0, "addr": 0, "mdns_query_a": 0, "2000": 0, "esp_err_not_found": 0, "host": 0, "was": 0, "not": 0, "found": 0, "ipstr": 0, "ip2str": 0, "static": 0, "if_str": 0, "ap": 0, "eth": 0, "max": 0, "ip_protocol_str": 0, "v4": 0, "v6": 0, "mdns_print_result": 0, "result": 0, "mdns_ip_addr_t": 0, "int": 0, "while": 0, "interfac": 0, "tcpip_if": 0, "ip_protocol": 0, "ptr": 0, "srv": 0, "txt_count": 0, "for": 0, "kei": 0, "valu": 0, "ipaddr_type_v6": 0, "aaaa": 0, "ipv6str": 0, "ipv62str": 0, "u_addr": 0, "ip6": 0, "els": 0, "ip4": 0, "next": 0, "find_mdns_servic": 0, "service_nam": 0, "esp_log": 0, "tag": 0, "mdns_query_ptr": 0, "3000": 0, "20": 0, "esp_logw": 0, "no": 0, "mdns_query_results_fre": 0, "my_app_some_method": 0, "http": 0, "_smb": 0, "_afpovertcp": 0, "afp": 0, "_nf": 0, "nfs": 0, "_ftp": 0, "ftp": 0, "_printer": 0, "_ipp": 0, "includ": 0, "initi": 0, "on": 0, "given": 0, "esp_ok": 0, "success": 0, "esp_err_invalid_st": 0, "when": 0, "to": 0, "regist": 0, "event": 0, "handler": 0, "esp_err_no_mem": 0, "memori": 0, "error": 0, "esp_fail": 0, "start": 0, "task": 0, "mdns_free": 0, "stop": 0, "and": 0, "free": 0, "set": 0, "the": 0, "requir": 0, "you": 0, "want": 0, "advertis": 0, "servic": 0, "esp_err_invalid_arg": 0, "paramet": 0, "mdns_delegate_hostname_add": 0, "address_list": 0, "add": 0, "address": 0, "be": 0, "deleg": 0, "will": 0, "repli": 0, "can": 0, "added": 0, "thi": 0, "list": 0, "of": 0, "is": 0, "run": 0, "mdns_delegate_hostname_remov": 0, "remov": 0, "all": 0, "also": 0, "bool": 0, "mdns_hostname_exist": 0, "whether": 0, "has": 0, "been": 0, "true": 0, "fals": 0, "default": 0, "instanc": 0, "name": 0, "uint16_t": 0, "size_t": 0, "num_item": 0, "length": 0, "item": 0, "automat": 0, "decid": 0, "by": 0, "strlen": 0, "global": 0, "or": 0, "used": 0, "note": 0, "that": 0, "mdns_multiple_inst": 0, "config": 0, "option": 0, "need": 0, "enabl": 0, "adding": 0, "multipl": 0, "with": 0, "same": 0, "etc": 0, "protocol": 0, "string": 0, "arrai": 0, "data": 0, "eg": 0, "other": 0, "number": 0, "in": 0, "mdns_service_add_for_host": 0, "mdns_service_exist": 0, "check": 0, "correspond": 0, "mdns_service_exists_with_inst": 0, "mdns_service_remov": 0, "from": 0, "mdns_service_remove_for_host": 0, "mdns_service_instance_name_set_for_host": 0, "instance_old": 0, "origin": 0, "mdns_service_port_set_for_host": 0, "uint8_t": 0, "replac": 0, "mdns_service_txt_set_for_host": 0, "mdns_service_txt_item_set": 0, "record": 0, "updat": 0, "new": 0, "mdns_service_txt_item_set_with_explicit_value_len": 0, "value_len": 0, "mdns_service_txt_item_set_for_host": 0, "mdns_service_txt_item_set_for_host_with_explicit_value_len": 0, "mdns_service_txt_item_remov": 0, "mdns_service_txt_item_remove_for_host": 0, "mdns_service_subtype_add_for_host": 0, "subtyp": 0, "find": 0, "first": 0, "mdns_service_remove_al": 0, "mdns_query_async_delet": 0, "mdns_search_once_t": 0, "search": 0, "delet": 0, "finish": 0, "call": 0, "onli": 0, "after": 0, "end": 0, "pointer": 0, "object": 0, "mdns_query_async_get_result": 0, "uint32_t": 0, "timeout": 0, "num_result": 0, "get": 0, "avail": 0, "as": 0, "output": 0, "via": 0, "onc": 0, "although": 0, "have": 0, "freed": 0, "manual": 0, "time": 0, "millisecond": 0, "wait": 0, "answer": 0, "actual": 0, "ignor": 0, "befor": 0, "at": 0, "over": 0, "mdns_query_async_new": 0, "max_result": 0, "mdns_query_notify_t": 0, "notifi": 0, "asynchronous": 0, "test": 0, "progress": 0, "mdns_type_": 0, "dure": 0, "which": 0, "activ": 0, "maximum": 0, "collect": 0, "notif": 0, "readi": 0, "mdns_search_once_": 0, "successfulli": 0, "otherwis": 0, "mdns_query_gener": 0, "mdns_query_transmission_type_t": 0, "transmission_typ": 0, "gener": 0, "follow": 0, "method": 0, "are": 0, "deriv": 0, "one": 0, "either": 0, "unicast": 0, "multicast": 0, "must": 0, "using": 0, "below": 0, "mdns_queri": 0, "send": 0, "link": 0, "mdns_query_srv": 0, "mdns_query_txt": 0Line truncated
|
||||
Search.setIndex({"docnames": ["index"], "filenames": ["index.rst"], "titles": ["mDNS \u670d\u52a1"], "terms": {"english": 0, "udp": 0, "mac": 0, "os": 0, "bonjour": 0, "appl": 0, "window": 0, "linux": 0, "avahi": 0, "hostnam": 0, "my": 0, "esp32": 0, "local": 0, "default_inst": 0, "jhon": 0, "thing": 0, "sta": 0, "void": 0, "start_mdns_servic": 0, "esp_err_t": 0, "err": 0, "mdns_init": 0, "if": 0, "printf": 0, "init": 0, "fail": 0, "return": 0, "mdns_hostname_set": 0, "mdns_instance_name_set": 0, "instance_nam": 0, "web": 0, "server": 0, "service_typ": 0, "proto": 0, "_tcp": 0, "_udp": 0, "port": 0, "txt": 0, "var": 0, "val": 0, "add_mdns_servic": 0, "mdns_service_add": 0, "null": 0, "_http": 0, "80": 0, "_arduino": 0, "3232": 0, "_myservic": 0, "1234": 0, "mdns_service_instance_name_set": 0, "mdns_txt_item_t": 0, "servicetxtdata": 0, "board": 0, "user": 0, "password": 0, "mdns_service_txt_set": 0, "mdns_service_port_set": 0, "4321": 0, "ip": 0, "ipv6": 0, "mdns_result_t": 0, "resolve_mdns_host": 0, "const": 0, "char": 0, "host_nam": 0, "queri": 0, "struct": 0, "ip4_addr": 0, "addr": 0, "mdns_query_a": 0, "2000": 0, "esp_err_not_found": 0, "host": 0, "was": 0, "not": 0, "found": 0, "ipstr": 0, "ip2str": 0, "static": 0, "if_str": 0, "ap": 0, "eth": 0, "max": 0, "ip_protocol_str": 0, "v4": 0, "v6": 0, "mdns_print_result": 0, "result": 0, "mdns_ip_addr_t": 0, "int": 0, "while": 0, "interfac": 0, "tcpip_if": 0, "ip_protocol": 0, "ptr": 0, "srv": 0, "txt_count": 0, "for": 0, "key": 0, "valu": 0, "ipaddr_type_v6": 0, "aaaa": 0, "ipv6str": 0, "ipv62str": 0, "u_addr": 0, "ip6": 0, "els": 0, "ip4": 0, "next": 0, "find_mdns_servic": 0, "service_nam": 0, "esp_log": 0, "tag": 0, "mdns_query_ptr": 0, "3000": 0, "20": 0, "esp_logw": 0, "no": 0, "mdns_query_results_fre": 0, "my_app_some_method": 0, "http": 0, "_smb": 0, "_afpovertcp": 0, "afp": 0, "_nfs": 0, "nfs": 0, "_ftp": 0, "ftp": 0, "_printer": 0, "_ipp": 0, "includ": 0, "initi": 0, "on": 0, "given": 0, "esp_ok": 0, "success": 0, "esp_err_invalid_st": 0, "when": 0, "to": 0, "regist": 0, "event": 0, "handler": 0, "esp_err_no_mem": 0, "memori": 0, "error": 0, "esp_fail": 0, "start": 0, "task": 0, "mdns_free": 0, "stop": 0, "and": 0, "free": 0, "set": 0, "the": 0, "requir": 0, "you": 0, "want": 0, "advertis": 0, "servic": 0, "esp_err_invalid_arg": 0, "paramet": 0, "mdns_delegate_hostname_add": 0, "address_list": 0, "add": 0, "address": 0, "be": 0, "deleg": 0, "will": 0, "repli": 0, "can": 0, "added": 0, "this": 0, "list": 0, "of": 0, "is": 0, "run": 0, "mdns_delegate_hostname_remov": 0, "remov": 0, "all": 0, "also": 0, "bool": 0, "mdns_hostname_exist": 0, "whether": 0, "has": 0, "been": 0, "true": 0, "fals": 0, "default": 0, "instanc": 0, "name": 0, "uint16_t": 0, "size_t": 0, "num_item": 0, "length": 0, "item": 0, "automat": 0, "decid": 0, "by": 0, "strlen": 0, "global": 0, "or": 0, "use": 0, "note": 0, "that": 0, "mdns_multiple_inst": 0, "config": 0, "option": 0, "need": 0, "enabl": 0, "adding": 0, "multipl": 0, "with": 0, "same": 0, "etc": 0, "protocol": 0, "string": 0, "array": 0, "data": 0, "eg": 0, "other": 0, "number": 0, "in": 0, "mdns_service_add_for_host": 0, "mdns_service_exist": 0, "check": 0, "correspond": 0, "mdns_service_exists_with_inst": 0, "mdns_service_remov": 0, "from": 0, "mdns_service_remove_for_host": 0, "mdns_service_instance_name_set_for_host": 0, "instance_old": 0, "origin": 0, "mdns_service_port_set_for_host": 0, "uint8_t": 0, "replac": 0, "mdns_service_txt_set_for_host": 0, "mdns_service_txt_item_set": 0, "record": 0, "updat": 0, "new": 0, "mdns_service_txt_item_set_with_explicit_value_len": 0, "value_len": 0, "mdns_service_txt_item_set_for_host": 0, "mdns_service_txt_item_set_for_host_with_explicit_value_len": 0, "mdns_service_txt_item_remov": 0, "mdns_service_txt_item_remove_for_host": 0, "mdns_service_subtype_add_for_host": 0, "subtyp": 0, "find": 0, "first": 0, "mdns_service_remove_al": 0, "mdns_query_async_delet": 0, "mdns_search_once_t": 0, "search": 0, "delet": 0, "finish": 0, "call": 0, "onli": 0, "after": 0, "end": 0, "pointer": 0, "object": 0, "mdns_query_async_get_result": 0, "uint32_t": 0, "timeout": 0, "num_result": 0, "get": 0, "avail": 0, "as": 0, "output": 0, "via": 0, "onc": 0, "although": 0, "have": 0, "freed": 0, "manual": 0, "time": 0, "millisecond": 0, "wait": 0, "answer": 0, "actual": 0, "ignor": 0, "befor": 0, "at": 0, "over": 0, "mdns_query_async_new": 0, "max_result": 0, "mdns_query_notify_t": 0, "notifi": 0, "asynchronous": 0, "test": 0, "progress": 0, "mdns_type_": 0, "dure": 0, "which": 0, "activ": 0, "maximum": 0, "collect": 0, "notif": 0, "readi": 0, "mdns_search_once_": 0, "otherwis": 0, "mdns_query_gener": 0, "mdns_query_transmission_type_t": 0, "transmission_typ": 0, "generic": 0, "follow": 0, "method": 0, "are": 0, "deriv": 0, "one": 0, "either": 0, "unicast": 0, "multicast": 0, "must": 0, "below": 0, "mdns_queri": 0, "send": 0, "link": 0, "mdns_query_srv": 0, "mdns_query_txt": 0, "esp_ip4_addr_t": 0, "lookLine truncated
|
||||
Reference in new issue
Block a user