{"id":80929,"date":"2026-07-24T22:45:11","date_gmt":"2026-07-24T14:45:11","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/80929.html"},"modified":"2026-07-24T22:45:11","modified_gmt":"2026-07-24T14:45:11","slug":"flutter-%e4%b8%89%e6%96%b9%e5%ba%93-at_server_status-%e7%9a%84%e9%b8%bf%e8%92%99%e5%8c%96%e9%80%82%e9%85%8d%e6%8c%87%e5%8d%97-%e5%9c%a8%e9%b8%bf%e8%92%99%e7%b3%bb%e7%bb%9f%e4%b8%8a%e6%9e%84%e5%bb%ba","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/80929.html","title":{"rendered":"Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 @protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce"},"content":{"rendered":"<p>\u6b22\u8fce\u52a0\u5165\u5f00\u6e90\u9e3f\u8499\u8de8\u5e73\u53f0\u793e\u533a&#xff1a;https:\/\/openharmonycrossplatform.csdn.net<\/p>\n<h2>Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 &#8211; \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 &#064;protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce<\/h2>\n<p>\u5728\u9e3f\u8499&#xff08;OpenHarmony&#xff09;\u7cfb\u7edf\u7684\u9690\u79c1\u4fdd\u62a4\u5e94\u7528\u3001\u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u7ba1\u7406\u5de5\u5177&#xff08;\u57fa\u4e8e &#064;protocol \u534f\u8bae&#xff09;\u6216\u9700\u8981\u5b9e\u65f6\u76d1\u63a7\u5168\u7403\u5206\u5e03\u5f0f\u8282\u70b9\u5065\u5eb7\u72b6\u51b5\u7684\u573a\u666f\u4e2d&#xff0c;\u5982\u4f55\u5224\u5b9a\u4e00\u4e2a &#064;sign&#xff08;\u7535\u5b50\u7b7e\u540d\u6807\u8bc6&#xff09;\u80cc\u540e\u7684 Root \u670d\u52a1\u5668\u6216 Secondary \u670d\u52a1\u5668\u662f\u5426\u5728\u7ebf\u3001\u914d\u7f6e\u662f\u5426\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u5df2\u5c31\u7eea&#xff1f;at_server_status \u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4e00\u5957\u5de5\u4e1a\u7ea7\u7684\u3001\u57fa\u4e8e\u534f\u8bae\u6808\u7684\u72b6\u6001\u5ba1\u8ba1\u4e0e\u81ea\u68c0\u65b9\u6848\u3002\u672c\u6587\u5c06\u6df1\u5165\u5b9e\u6218\u5176\u5728\u9e3f\u8499 Web3 \u8eab\u4efd\u5b89\u5168\u5e95\u5ea7\u4e2d\u7684\u5e94\u7528\u3002<\/p>\n<h3>\u524d\u8a00<\/h3>\n<p>\u4ec0\u4e48\u662f atServer Status&#xff1f;\u5b83\u662f &#064;protocol&#xff08;\u4e00\u79cd\u65e8\u5728\u8ba9\u7528\u6237\u5b8c\u5168\u638c\u63a7\u6570\u636e\u7684\u53bb\u4e2d\u5fc3\u5316\u534f\u8bae&#xff09;\u5b98\u65b9\u751f\u6001\u7684\u6838\u5fc3\u7ec4\u4ef6\u3002\u5b83\u80fd\u68c0\u6d4b\u4e00\u4e2a &#064;sign \u5730\u5740\u7ecf\u5386\u7684\u201c\u5168\u751f\u547d\u5468\u671f\u201d\u72b6\u6001&#xff08;\u4ece\u5f00\u59cb\u914d\u7f6e\u5230\u5b8c\u5168\u8fd0\u884c&#xff09;\u3002\u5728 Flutter for OpenHarmony \u7684\u5b9e\u9645\u5f00\u53d1\u4e2d&#xff0c;\u5229\u7528\u8be5\u5e93&#xff0c;\u6211\u4eec\u53ef\u4ee5\u8ba9\u9e3f\u8499\u5e94\u7528\u4ee5\u201c\u6beb\u79d2\u7ea7\u201d\u5ef6\u8fdf\u6d1e\u5bdf\u8fdc\u7aef\u8eab\u4efd\u8282\u70b9\u7684\u8fde\u901a\u6027\u3002\u5b83\u662f\u6784\u5efa\u201c\u6781\u81f4\u7a33\u5065\u3001\u8eab\u4efd\u81ea\u4e3b\u201d\u9e3f\u8499\u5e94\u7528\u540e\u7684\u6838\u5fc3\u611f\u77e5\u5185\u6838\u3002<\/p>\n<h3>\u4e00\u3001\u539f\u7406\u5206\u6790 \/ \u6982\u5ff5\u4ecb\u7ecd<\/h3>\n<h4>1.1 \u670d\u52a1\u5668\u72b6\u6001\u5ba1\u8ba1\u62d3\u6251<\/h4>\n<p>at_server_status \u5b9e\u73b0\u4e86\u4ece\u201c&#064;sign \u6807\u8bc6&#xff08;Identifier&#xff09;\u201d\u5230\u201c\u5206\u5e03\u5f0f\u670d\u52a1\u5668\u72b6\u6001&#xff08;Node Status&#xff09;\u201d\u7684\u7cbe\u51c6\u63a2\u6d4b\u4e0e\u6620\u5c04\u3002<\/p>\n<p>  #mermaid-svg-TA8SEAOyeIAyT9Lh{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-TA8SEAOyeIAyT9Lh .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-TA8SEAOyeIAyT9Lh .error-icon{fill:#552222;}#mermaid-svg-TA8SEAOyeIAyT9Lh .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-TA8SEAOyeIAyT9Lh .marker{fill:#333333;stroke:#333333;}#mermaid-svg-TA8SEAOyeIAyT9Lh .marker.cross{stroke:#333333;}#mermaid-svg-TA8SEAOyeIAyT9Lh svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-TA8SEAOyeIAyT9Lh p{margin:0;}#mermaid-svg-TA8SEAOyeIAyT9Lh .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-TA8SEAOyeIAyT9Lh .cluster-label text{fill:#333;}#mermaid-svg-TA8SEAOyeIAyT9Lh .cluster-label span{color:#333;}#mermaid-svg-TA8SEAOyeIAyT9Lh .cluster-label span p{background-color:transparent;}#mermaid-svg-TA8SEAOyeIAyT9Lh .label text,#mermaid-svg-TA8SEAOyeIAyT9Lh span{fill:#333;color:#333;}#mermaid-svg-TA8SEAOyeIAyT9Lh .node rect,#mermaid-svg-TA8SEAOyeIAyT9Lh .node circle,#mermaid-svg-TA8SEAOyeIAyT9Lh .node ellipse,#mermaid-svg-TA8SEAOyeIAyT9Lh .node polygon,#mermaid-svg-TA8SEAOyeIAyT9Lh .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-TA8SEAOyeIAyT9Lh .rough-node .label text,#mermaid-svg-TA8SEAOyeIAyT9Lh .node .label text,#mermaid-svg-TA8SEAOyeIAyT9Lh .image-shape .label,#mermaid-svg-TA8SEAOyeIAyT9Lh .icon-shape .label{text-anchor:middle;}#mermaid-svg-TA8SEAOyeIAyT9Lh .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-TA8SEAOyeIAyT9Lh .rough-node .label,#mermaid-svg-TA8SEAOyeIAyT9Lh .node .label,#mermaid-svg-TA8SEAOyeIAyT9Lh .image-shape .label,#mermaid-svg-TA8SEAOyeIAyT9Lh .icon-shape .label{text-align:center;}#mermaid-svg-TA8SEAOyeIAyT9Lh .node.clickable{cursor:pointer;}#mermaid-svg-TA8SEAOyeIAyT9Lh .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-TA8SEAOyeIAyT9Lh .arrowheadPath{fill:#333333;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-TA8SEAOyeIAyT9Lh .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-TA8SEAOyeIAyT9Lh .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-TA8SEAOyeIAyT9Lh .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-TA8SEAOyeIAyT9Lh .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-TA8SEAOyeIAyT9Lh .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-TA8SEAOyeIAyT9Lh .cluster text{fill:#333;}#mermaid-svg-TA8SEAOyeIAyT9Lh .cluster span{color:#333;}#mermaid-svg-TA8SEAOyeIAyT9Lh div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-TA8SEAOyeIAyT9Lh .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-TA8SEAOyeIAyT9Lh rect.text{fill:none;stroke-width:0;}#mermaid-svg-TA8SEAOyeIAyT9Lh .icon-shape,#mermaid-svg-TA8SEAOyeIAyT9Lh .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-TA8SEAOyeIAyT9Lh .icon-shape p,#mermaid-svg-TA8SEAOyeIAyT9Lh .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-TA8SEAOyeIAyT9Lh .icon-shape rect,#mermaid-svg-TA8SEAOyeIAyT9Lh .image-shape rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-TA8SEAOyeIAyT9Lh .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-TA8SEAOyeIAyT9Lh .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-TA8SEAOyeIAyT9Lh :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\u8bbf\u95ee &#064;root \u76ee\u5f55\u670d\u52a1\u5668 (Root Lookup)<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\u5efa\u7acb TLS \u63e1\u624b\u63a2\u6d4b (Connectivity Check)<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\u68c0\u6d4b\u914d\u7f6e\u8fdb\u5ea6 (Activation Stage)<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\u72b6\u6001: Activated<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/p>\n<p>\u72b6\u6001: Ready<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"edgeLabel\"><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u9e3f\u8499\u7528\u6237\u7684 &#064;sign (\u5982: &#064;alice)<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>at_server_status (\u63a2\u6d4b\u5185\u6838)<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u89e3\u6790 Secondary \u8282\u70b9\u5730\u5740<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u670d\u52a1\u5668\u5168\u91cf\u72b6\u6001\u679a\u4e3e (Status Enum)<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u9e3f\u8499\u4e1a\u52a1\u903b\u8f91\u5c42\u5224\u5b9a<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u5f00\u542f\u9e3f\u8499\u7aef\u5b89\u5168\u6570\u636e\u540c\u6b65<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u5f15\u5bfc\u9e3f\u8499\u7528\u6237\u521d\u6b21\u52a0\u7b7e\u6fc0\u6d3b<\/p>\n<p><\/span><\/p>\n<p>         <span class=\"nodeLabel\"><\/p>\n<p>\u6781\u81f4\u5e73\u6ed1\u7684\u9e3f\u8499\u53bb\u4e2d\u5fc3\u5316\u4f53\u9a8c<\/p>\n<p><\/span><\/p>\n<h4>1.2 \u4e3a\u4ec0\u4e48\u5728\u9e3f\u8499\u5f00\u53d1\u4e2d\u4f7f\u7528\u5b83&#xff1f;<\/h4>\n<ul>\n<li>\u6781\u81f4\u7684\u8eab\u4efd\u72b6\u6001\u53ef\u89c6\u5316&#xff1a;\u4e0d\u518d\u76f2\u76ee\u8fde\u63a5\u3002\u5728\u89e6\u53d1\u91cd\u578b\u540c\u6b65\u4efb\u52a1\u524d\u3002\u5148\u8c03\u7528\u4e00\u6b21\u63a2\u6d4b\u3002\u5982\u679c\u8fdc\u7aef\u8282\u70b9\u5c1a\u672a\u6fc0\u6d3b\u3002\u5229\u7528\u9e3f\u8499\u7cfb\u7edf\u7684 UI \u5f15\u5bfc\u3002\u6781\u5927\u63d0\u5347\u4e86\u9e3f\u8499\u7248\u5b89\u5168\u5e94\u7528\u7684\u4ea4\u4e92\u8d44\u4ea7\u3002<\/li>\n<li>\u5168\u751f\u547d\u5468\u671f\u8986\u76d6&#xff1a;\u4e0d\u4ec5\u5305\u542b\u5728\u7ebf\/\u79bb\u7ebf\u3002\u8fd8\u68c0\u6d4b\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u201cTeardown&#xff08;\u5173\u505c&#xff09;\u201d\u6216\u201cRepair&#xff08;\u7ef4\u62a4&#xff09;\u201d\u7b49\u7ec6\u7c92\u5ea6\u72b6\u6001\u3002\u8fd9\u5bf9\u9e3f\u8499\u7aef\u7684\u5206\u5e03\u5f0f\u5e94\u7528\u53ef\u7528\u6027\u81f3\u5173\u91cd\u8981\u3002<\/li>\n<li>\u9ad8\u5ea6\u5b89\u5168\u7684\u4e00\u81f4\u6027&#xff1a;\u57fa\u4e8e\u6807\u51c6\u7684\u5b89\u5168\u8fde\u63a5\u534f\u8bae\u3002\u5b8c\u7f8e\u9002\u914d\u9e3f\u8499\u7cfb\u7edf\u7684\u5b89\u5168\u6c99\u7bb1&#xff08;Sandbox&#xff09;\u4e0e\u7f51\u7edc\u6743\u9650\u7ba1\u63a7\u7b56\u7565\u3002<\/li>\n<\/ul>\n<h3>\u4e8c\u3001\u9e3f\u8499\u57fa\u7840\u6307\u5bfc<\/h3>\n<h4>2.1 \u9002\u914d\u60c5\u51b5<\/h4>\n<li>\u662f\u5426\u539f\u751f\u652f\u6301&#xff1f;&#xff1a;\u662f&#xff0c;\u4f5c\u4e3a\u7eaf Dart \u903b\u8f91\u89e3\u6790\u5e93\u3002\u5728\u9e3f\u8499\u7cfb\u7edf&#xff08;\u624b\u673a\u3001\u5e73\u677f\u3001\u684c\u9762\u7248&#xff09;\u7684\u5168\u7403\u7f51\u7edc\u73af\u5883\u4e0b\u8868\u73b0\u6781\u5176\u7075\u654f\u7a33\u5b9a\u3002<\/li>\n<li>\u573a\u666f\u9002\u914d\u5ea6&#xff1a;\u9e3f\u8499\u7aef\u5206\u5e03\u5f0f\u79c1\u6709\u5b58\u50a8\u52a9\u624b\u3001\u57fa\u4e8e &#064;protocol \u7684\u9e3f\u8499\u7248\u7aef\u5230\u7aef\u52a0\u5bc6\u804a\u5929\u5de5\u5177\u3001\u5e26\u6709\u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u9a8c\u8bc1\u9700\u6c42\u7684\u9e3f\u8499\u653f\u4f01\u79fb\u52a8\u5165\u53e3\u3002<\/li>\n<li>\u67b6\u6784\u652f\u6301&#xff1a;\u517c\u5bb9 Dart 3.x \u53ca\u5176\u7a7a\u5b89\u5168\u7279\u6027&#xff0c;\u4e0e\u9e3f\u8499\u7cfb\u7edf\u4e0b\u7684\u5f02\u6b65\u5f02\u6b65\u7f51\u7edc I\/O (Async Net I\/O) \u534f\u540c\u6781\u5176\u4e25\u5bc6\u3002<\/li>\n<h4>2.2 \u5b89\u88c5\u914d\u7f6e<\/h4>\n<p>\u5728\u9e3f\u8499\u9879\u76ee\u7684 pubspec.yaml \u4e2d\u6dfb\u52a0\u4f9d\u8d56&#xff1a;<\/p>\n<p><span class=\"token key atrule\">dependencies<\/span><span class=\"token punctuation\">:<\/span><br \/>\n  <span class=\"token key atrule\">at_server_status<\/span><span class=\"token punctuation\">:<\/span> ^1.1.1<\/p>\n<h3>\u4e09\u3001\u6838\u5fc3 API \/ \u5efa\u6a21\u8be6\u89e3<\/h3>\n<h4>3.1 \u6838\u5fc3\u8c03\u7528\u7c7b\/\u679a\u4e3e<\/h4>\n<table>\n<tr>\u7c7b\u522b\/\u529f\u80fd\u529f\u80fd\u63cf\u8ff0\u9e3f\u8499\u5f00\u53d1\u4e2d\u7684\u7528\u6cd5\u5efa\u8bae<\/tr>\n<tbody>\n<tr>\n<td>AtStatusImpl<\/td>\n<td>\u63a2\u6d4b\u5668\u6838\u5fc3\u5b9e\u73b0\u7c7b<\/td>\n<td>\u8f93\u5165 &#064;sign \u5e76\u83b7\u53d6\u72b6\u6001\u62a5\u544a\u7684\u4e3b\u5165\u53e3<\/td>\n<\/tr>\n<tr>\n<td>AtStatus<\/td>\n<td>\u72b6\u6001\u62a5\u544a\u5bf9\u8c61<\/td>\n<td>\u5305\u542b Root \u72b6\u6001\u3001Secondary \u72b6\u6001\u7b49\u7efc\u5408\u4fe1\u606f<\/td>\n<\/tr>\n<tr>\n<td>AtStatusEnum<\/td>\n<td>\u72b6\u6001\u679a\u4e3e\u96c6\u5408<\/td>\n<td>\u7528\u4e8e\u903b\u8f91\u5206\u652f\u5224\u5b9a\u7684\u5404\u79cd\u72b6\u6001\u5e38\u91cf<\/td>\n<\/tr>\n<tr>\n<td>checkStatus()<\/td>\n<td>\u6267\u884c\u5f02\u6b65\u5f02\u6b65\u68c0\u6d4b<\/td>\n<td>\u9e3f\u8499\u7ec4\u4ef6\u751f\u547d\u5468\u671f\u5185\u7684\u4e00\u952e\u81ea\u68c0\u6307\u4ee4<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>3.2 \u9e3f\u8499\u7aef &#064;protocol \u8eab\u4efd\u63a2\u6d4b\u5b9e\u6218\u793a\u4f8b<\/h4>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token string-literal\"><span class=\"token string\">&#039;package:at_server_status\/at_server_status.dart&#039;<\/span><\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p><span class=\"token class-name\">Future<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> <span class=\"token function\">driveOhosAtProtocolMonitor<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">async<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token comment\">\/\/ 1. \u521d\u59cb\u5316\u9488\u5bf9\u9e3f\u8499\u73af\u5883\u7684\u63a2\u6d4b\u5668\u5b9e\u4f8b (\u8bbf\u95ee\u5b98\u65b9\u751f\u4ea7 Root \u670d\u52a1\u5668)<\/span><br \/>\n  <span class=\"token keyword\">final<\/span> atStatus <span class=\"token operator\">&#061;<\/span> <span class=\"token class-name\">AtStatusImpl<\/span><span class=\"token punctuation\">(<\/span>rootUrl<span class=\"token punctuation\">:<\/span> <span class=\"token string-literal\"><span class=\"token string\">&#039;root.atsign.org&#039;<\/span><\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>  <span class=\"token comment\">\/\/ 2. \u6781\u81f4\u7cbe\u51c6&#xff1a;\u63a2\u6d4b\u4e00\u4e2a\u7279\u5b9a\u7684\u9e3f\u8499 &#064;sign \u8eab\u4efd\u8282\u70b9\u72b6\u6001<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> myAtSign <span class=\"token operator\">&#061;<\/span> <span class=\"token string-literal\"><span class=\"token string\">&#039;&#064;ohos_developer&#039;<\/span><\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>  <span class=\"token keyword\">try<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n     <span class=\"token keyword\">final<\/span> status <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> atStatus<span class=\"token punctuation\">.<\/span><span class=\"token keyword\">get<\/span><span class=\"token punctuation\">(<\/span>myAtSign<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>     <span class=\"token comment\">\/\/ 3. \u903b\u8f91\u5224\u5b9a&#xff1a;\u6839\u636e\u679a\u4e3e\u5c55\u793a\u6781\u81f4\u7684 UI \u53cd\u9988<\/span><br \/>\n     <span class=\"token keyword\">switch<\/span> <span class=\"token punctuation\">(<\/span>status<span class=\"token punctuation\">.<\/span>serverStatus<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n       <span class=\"token keyword\">case<\/span> <span class=\"token class-name\">AtStatusEnum<\/span><span class=\"token punctuation\">.<\/span>activated<span class=\"token punctuation\">:<\/span><br \/>\n         <span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-literal\"><span class=\"token string\">&#034;\u2705 \u9e3f\u8499\u8eab\u4efd\u8282\u70b9\u5df2\u6fc0\u6d3b\u5e76\u5728\u7ebf&#xff1a;\u53ef\u4ee5\u542f\u52a8\u52a0\u5bc6\u901a\u8baf&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n         <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><br \/>\n       <span class=\"token keyword\">case<\/span> <span class=\"token class-name\">AtStatusEnum<\/span><span class=\"token punctuation\">.<\/span>tealdown<span class=\"token punctuation\">:<\/span><br \/>\n         <span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-literal\"><span class=\"token string\">&#034;\u26a0\ufe0f \u7269\u7406\u62a5\u8b66&#xff1a;\u8be5\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u9e3f\u8499\u8282\u70b9\u5df2\u8fdb\u5165\u5173\u505c\u903b\u8f91&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n         <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><br \/>\n       <span class=\"token keyword\">case<\/span> <span class=\"token class-name\">AtStatusEnum<\/span><span class=\"token punctuation\">.<\/span>ready<span class=\"token punctuation\">:<\/span><br \/>\n         <span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-literal\"><span class=\"token string\">&#034;\u2139\ufe0f \u63d0\u793a&#xff1a;\u8282\u70b9\u5df2\u5206\u914d&#xff0c;\u8bf7\u5728\u9e3f\u8499\u7aef\u5b8c\u6210\u521d\u59cb\u5316\u6fc0\u6d3b\u6d41\u7a0b&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n         <span class=\"token keyword\">break<\/span><span class=\"token punctuation\">;<\/span><br \/>\n       <span class=\"token keyword\">default<\/span><span class=\"token punctuation\">:<\/span><br \/>\n         <span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-literal\"><span class=\"token string\">&#034;\u6765\u81ea\u9e3f\u8499\u72b6\u6001\u5ba1\u8ba1\u4e2d\u5fc3\u7684\u672a\u77e5\u4fe1\u53f7: <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">${<\/span><span class=\"token expression\">status<span class=\"token punctuation\">.<\/span>serverStatus<\/span><span class=\"token punctuation\">}<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n     <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">catch<\/span> <span class=\"token punctuation\">(<\/span>e<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n     <span class=\"token function\">print<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-literal\"><span class=\"token string\">&#034;\u9e3f\u8499\u7aef\u7f51\u7edc\u94fe\u8def\u5f02\u5e38 [Ohos Exception]: <\/span><span class=\"token interpolation\"><span class=\"token punctuation\">$<\/span><span class=\"token expression\">e<\/span><\/span><span class=\"token string\">&#034;<\/span><\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>\u56db\u3001\u5178\u578b\u5e94\u7528\u573a\u666f<\/h3>\n<h4>4.1 \u9e3f\u8499\u7aef\u7684\u201c\u6781\u81f4\u201d\u73af\u5883\u5f15\u5bfc&#xff1a;\u4e00\u952e\u81ea\u68c0<\/h4>\n<p>\u9488\u5bf9\u65b0\u7528\u6237\u63a5\u5165\u9e3f\u8499\u7248 &#064;protocol \u5e94\u7528\u3002\u5229\u7528 at_server_status\u3002\u5728\u540e\u53f0\u81ea\u52a8\u5de1\u68c0\u7528\u6237\u7684\u8282\u70b9\u72b6\u6001\u3002\u5982\u679c\u53d1\u73b0\u5176 Secondary Server \u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u6b63\u5728\u901a\u8fc7\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7ef4\u62a4\u671f\u3002\u81ea\u52a8\u5f39\u7a97\u5f15\u5bfc\u6682\u7f13\u64cd\u4f5c&#xff0c;\u63d0\u5347\u9e3f\u8499\u5e94\u7528\u7684\u201c\u61c2\u4f60\u201d\u4ea4\u4e92\u6df1\u5ea6\u3002<\/p>\n<h4>4.2 \u9e3f\u8499\u5206\u5e03\u5f0f\u7f51\u7edc\u53d1\u73b0&#xff1a;\u8d1f\u8f7d\u5747\u8861\u5224\u5b9a<\/h4>\n<p>\u5728\u5177\u5907\u591a\u4e2a\u8eab\u4efd\u670d\u52a1\u5165\u53e3\u7684\u9e3f\u8499\u770b\u677f\u5e94\u7528\u4e2d\u3002\u5229\u7528\u63a2\u6d4b\u5668\u5b9a\u671f\u5de1\u8bbf\u3002\u5f53\u4e3b\u8282\u70b9\u72b6\u6001\u8fd4\u56de stopped \u65f6\u3002\u4e00\u952e\u81ea\u52a8\u5207\u6362\u81f3\u9e3f\u8499\u4e1a\u52a1\u5c42\u7684\u3002\u7ba1\u7406\u8fc7\u7a0b\u3002\u7531\u4e8e\u7531\u5bb9\u707e\u8282\u70b9&#xff0c;\u786e\u4fdd\u5728\u9e3f\u8499\u7ec8\u7aef\u7684\u6570\u636e\u9ad8\u53ef\u7528\u3002<\/p>\n<h3>\u4e94 : OpenHarmony \u5e73\u53f0\u9002\u914d\u6311\u6218<\/h3>\n<h4>5.1 Root DNS \u52ab\u6301\u4e0e\u89e3\u6790\u504f\u5dee (Caution)<\/h4>\n<p>\u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u8fd0\u884c\u3002\u4e0d\u540c\u5730\u533a\u7684 DNS \u670d\u52a1\u5668\u53ef\u80fd\u8fd4\u56de\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u65e7\u7684 IP \u6620\u5c04\u3002<\/p>\n<ul>\n<li>\u9002\u914d\u5efa\u8bae&#xff1a;\u5728\u4e00\u4e2a\u72b6\u6001\u63a9\u7801\u7ec4\u5408\u4e2d&#xff0c;\u8bf7\u52a1\u5fc5\u5728\u9e3f\u8499\u7aef\u3002\u7ba1\u7406\u8fc7\u7a0b\u3002\u7531\u4e8e\u63a2\u6d4b\u4f9d\u8d56 TLS \u8fde\u901a\u6027\u3002\u9488\u5bf9\u5728\u9e3f\u8499\u5927\u5bc6\u5ea6\u8bbf\u95ee\u73af\u5883\u4e0b\u3002\u5efa\u8bae\u663e\u5f0f\u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7531\u5b98\u65b9\u9ed8\u8ba4\u7684 Root URL\u3002\u5e76\u914d\u5408 timeout \u8bbe\u7f6e\u3002\u9632\u6b62\u7531\u4e8e\u7f51\u7edc\u9ed1\u6d1e\u5bfc\u81f4\u7684\u9e3f\u8499 UI \u754c\u9762\u77ac\u65f6\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u5047\u6b7b\u73b0\u8c61\u3002<\/li>\n<\/ul>\n<h4>5.2 \u5e73\u53f0\u5dee\u5f02\u5316\u5904\u7406 (TLS \u7248\u672c\u517c\u5bb9)<\/h4>\n<p>&#064;protocol \u8981\u6c42\u6781\u9ad8\u7684\u52a0\u5bc6\u6807\u51c6\u3002<\/p>\n<ul>\n<li>\u9002\u914d\u5efa\u8bae&#xff1a;\u5efa\u8bae\u68c0\u67e5\u9e3f\u8499\u5bbf\u4e3b\u673a\u7684 dart:io \u7248\u672c\u3002\u5728\u9e3f\u8499\u7aef\u3002\u7ba1\u7406\u8fc7\u7a0b\u3002\u9488\u5bf9\u4e0d\u652f\u6301\u6700\u4f4e\u52a0\u5bc6\u6807\u51c6\u7684\u3002\u7ba1\u7406\u8fc7\u7a0b\u3002\u7531\u4e8e\u7531\u65e7\u7248\u56fa\u4ef6\u3002\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7531\u4e8e\u7531\u5e93\u53ef\u80fd\u62a5\u9519\u3002\u8bf7\u52a1\u5fc5\u6355\u83b7 HandshakeException\u3002\u5e76\u7ed9\u4e88\u7528\u6237\u6e05\u6670\u7684\u9e3f\u8499\u7cfb\u7edf\u5347\u7ea7\u5f15\u5bfc\u7b56\u7565\u3002\u4fdd\u6301\u5728\u9e3f\u8499\u7aef\u663e\u793a\u3002\u7ba1\u7406\u8fc7\u7a0b\u3002\u7531\u4e8e\u5168\u89c6\u89d2\u95ed\u73af\u4e00\u81f4\u3002<\/li>\n<\/ul>\n<h3>\u516d : \u7efc\u5408\u5b9e\u6218\u6f14\u793a<\/h3>\n<p><span class=\"token comment\">\/\/ \u5728\u9e3f\u8499\u7ec4\u4ef6\u4e2d\u96c6\u6210&#xff1a;<\/span><\/p>\n<p><span class=\"token keyword\">class<\/span> <span class=\"token class-name\">OhosAtProtocolGauge<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token class-name\">Future<\/span><span class=\"token generics\"><span class=\"token punctuation\">&lt;<\/span><span class=\"token keyword\">void<\/span><span class=\"token punctuation\">&gt;<\/span><\/span> <span class=\"token function\">monitor<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">async<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u903b\u8f91&#xff1a;\u6781\u81f4\u7684\u5f00\u53d1\u4f53\u9a8c&#xff0c;\u4e00\u53e5\u8bdd\u7a7f\u900f\u5168\u7403\u5206\u5e03\u5f0f\u8eab\u4efd\u72b6\u6001<\/span><br \/>\n    <span class=\"token keyword\">final<\/span> report <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> <span class=\"token class-name\">AtStatusImpl<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token keyword\">get<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string-literal\"><span class=\"token string\">&#039;&#064;alice&#039;<\/span><\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>report<span class=\"token punctuation\">.<\/span>serverStatus <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token class-name\">AtStatusEnum<\/span><span class=\"token punctuation\">.<\/span>activated<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n       <span class=\"token function\">startOhosSecureSync<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>\u4e03 : \u603b\u7ed3<\/h3>\n<p>at_server_status \u4e3a\u9e3f\u8499\u5e94\u7528\u7684\u51fa\u6d77\u8eab\u4efd\u5ba1\u8ba1\u5f15\u5165\u4e86\u201c\u5de5\u4e1a\u7ea7\u201d\u7684\u786e\u4fe1\u6a21\u578b\u3002\u5b83\u901a\u8fc7\u5bf9\u5206\u5e03\u5f0f\u8282\u70b9\u72b6\u6001\u7684\u6781\u81f4\u5de1\u822a\u3002\u8ba9\u539f\u672c\u788e\u7247\u5316\u7684\u8fde\u63a5\u8fc7\u7a0b\u53d8\u5f97\u900f\u660e\u800c\u7cbe\u51c6\u3002\u5728\u6253\u9020\u8ffd\u6c42\u6781\u81f4\u8fde\u63a5\u7a33\u5b9a\u6027\u3001\u5177\u5907\u5168\u7403\u5316\u5206\u5e03\u5f0f\u8eab\u4efd\u611f\u77e5\u80fd\u529b\u7684\u9876\u7ea7\u9e3f\u8499\u5e94\u7528\u7814\u53d1\u5f81\u7a0b\u4e0a\u3002\u5b83\u662f\u60a8\u6784\u5efa\u201c\u8eab\u4efd\u611f\u77e5\u201d\u67b6\u6784\u7684\u6838\u5fc3\u901a\u8baf\u4fa6\u5bdf\u673a\u3002<\/p>\n<p>\u77e5\u8bc6\u70b9\u56de\u987e&#xff1a;<\/p>\n<li>AtStatusEnum \u6db5\u76d6\u4e86\u4ece Ready \u5230 Activated \u7684\u5168\u751f\u547d\u5468\u671f\u72b6\u6001\u3002<\/li>\n<li>\u5e93\u57fa\u4e8e TLS \u901a\u8baf\u3002\u4e0d\u6d89\u53ca\u654f\u611f\u6570\u636e\u4ea4\u4e92&#xff0c;\u4ec5\u6267\u884c\u72b6\u6001\u5fc3\u8df3\u63a2\u6d4b\u3002<\/li>\n<li>\u52a1\u5fc5\u7ed3\u5408\u9e3f\u8499\u7cfb\u7edf\u7684\u7f51\u7edc\u91cd\u8bd5\u673a\u5236&#xff0c;\u5904\u7406\u597d\u5404\u79cd\u5f02\u5e38\u5bfc\u81f4\u7684\u63a2\u6d4b\u5931\u8d25\u573a\u666f\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6b22\u8fce\u52a0\u5165\u5f00\u6e90\u9e3f\u8499\u8de8\u5e73\u53f0\u793e\u533a&#xff1a;https:\/\/openharmonycrossplatform.csdn.net<br \/>\nFlutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 &#8211; \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce<br \/>\n\u5728\u9e3f\u8499&#xff08;OpenHarmony&#xff09;\u7cfb\u7edf\u7684\u9690\u79c1\u4fdd\u62a4\u5e94\u7528\u3001\u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u7ba1\u7406\u5de5\u5177&#xff08;\u57fa\u4e8e protocol \u534f\u8bae&#xff09;\u6216\u9700\u8981\u5b9e\u65f6\u76d1\u63a7<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2878,280,67],"topic":[],"class_list":["post-80929","post","type-post","status-publish","format-standard","hentry","category-server","tag-flutter","tag-harmonyos","tag-67"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 @protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/80929.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 @protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6b22\u8fce\u52a0\u5165\u5f00\u6e90\u9e3f\u8499\u8de8\u5e73\u53f0\u793e\u533a&#xff1a;https:\/\/openharmonycrossplatform.csdn.net Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce \u5728\u9e3f\u8499&#xff08;OpenHarmony&#xff09;\u7cfb\u7edf\u7684\u9690\u79c1\u4fdd\u62a4\u5e94\u7528\u3001\u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u7ba1\u7406\u5de5\u5177&#xff08;\u57fa\u4e8e protocol \u534f\u8bae&#xff09;\u6216\u9700\u8981\u5b9e\u65f6\u76d1\u63a7\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/80929.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-24T14:45:11+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80929.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/80929.html\",\"name\":\"Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 @protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-24T14:45:11+00:00\",\"dateModified\":\"2026-07-24T14:45:11+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/80929.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/80929.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/80929.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 @protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 @protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/80929.html","og_locale":"zh_CN","og_type":"article","og_title":"Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 @protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6b22\u8fce\u52a0\u5165\u5f00\u6e90\u9e3f\u8499\u8de8\u5e73\u53f0\u793e\u533a&#xff1a;https:\/\/openharmonycrossplatform.csdn.net Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce \u5728\u9e3f\u8499&#xff08;OpenHarmony&#xff09;\u7cfb\u7edf\u7684\u9690\u79c1\u4fdd\u62a4\u5e94\u7528\u3001\u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u7ba1\u7406\u5de5\u5177&#xff08;\u57fa\u4e8e protocol \u534f\u8bae&#xff09;\u6216\u9700\u8981\u5b9e\u65f6\u76d1\u63a7","og_url":"https:\/\/www.wsisp.com\/helps\/80929.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-24T14:45:11+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/80929.html","url":"https:\/\/www.wsisp.com\/helps\/80929.html","name":"Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 @protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-24T14:45:11+00:00","dateModified":"2026-07-24T14:45:11+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/80929.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/80929.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/80929.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Flutter \u4e09\u65b9\u5e93 at_server_status \u7684\u9e3f\u8499\u5316\u9002\u914d\u6307\u5357 - \u5728\u9e3f\u8499\u7cfb\u7edf\u4e0a\u6784\u5efa\u6781\u81f4\u3001\u900f\u660e\u3001\u5b9e\u65f6\u7684 @protocol \u53bb\u4e2d\u5fc3\u5316\u8eab\u4efd\u670d\u52a1\u5668\u72b6\u6001\u611f\u77e5\u4e0e\u9274\u6743\u76d1\u63a7\u5f15\u64ce"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=80929"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/80929\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=80929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=80929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=80929"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=80929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}