{"id":4370,"date":"2023-11-08T22:32:58","date_gmt":"2023-11-08T14:32:58","guid":{"rendered":"https:\/\/white-night.club\/?p=4370"},"modified":"2023-11-19T00:06:10","modified_gmt":"2023-11-18T16:06:10","slug":"book2-4","status":"publish","type":"post","link":"https:\/\/white-night.club\/index.php\/2023\/11\/08\/book2-4\/","title":{"rendered":"4.\u300a\u8ba1\u7b97\u673a\u7f51\u7edc\u6559\u7a0b\uff1a\u81ea\u9876\u5411\u4e0b\u65b9\u6cd5\u300b(2012) \u4f5c\u8005\uff1aBehrouz A.Forouzan"},"content":{"rendered":"\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u5927\u7684\u8981\u6765\u4e86\u3002\n\u5c01\u88c5\u548c\u89e3\u5c01\u88c5\u4e00\u5171\u6d89\u53ca\u5230\u4e09\u4e2a\u5bf9\u8c61\uff1a\u6e90\u4e3b\u673a\u3001\u8def\u7531\u5668\u3001\u76ee\u7684\u4e3b\u673a\u3002\u63a5\u4e0b\u6765\u5148\u4ece\u6e90\u4e3b\u673a\u5f00\u59cb\u3002<\/code><\/pre>\n\n\n\n<p>1.\u5728\u5e94\u7528\u5c42\u4e2d\uff0c\u4ea4\u6362\u7684\u6570\u636e\u79f0\u4e3a\u6d88\u606f\uff08message\uff09\u3002\u6d88\u606f\u901a\u5e38\u4e0d\u5305\u542b\u4efb\u4f55\u5934\u90e8\u548c\u5c3e\u90e8\uff0c\u4f46\u662f\u5373\u4f7f\u5305\u542b\u4e86\u8fd9\u4e9b\uff0c\u6211\u4eec\u4e5f\u8bb2\u5176\u6574\u4f53\u79f0\u4e3a\u6d88\u606f\u3002\u6d88\u606f\u4f1a\u88ab\u4f20\u8f93\u5230\u4f20\u8f93\u5c42\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u5982\u679c\u8981\u7c7b\u6bd4\u8fd9\u5757\u7684\u6982\u5ff5\u7684\u8bdd\uff0cWeb\u5e94\u7528\u4e2d\u7684\u524d\u540e\u7aef\u5e94\u8be5\u662f\u6bd4\u8f83\u5951\u5408\u7684\u3002\n\u6bd4\u5982\u524d\u7aef\u9875\u9762\u63d0\u4ea4\u4e86\u4e2a\u767b\u5f55\u7684POST\u8bf7\u6c42\uff0c\u8fd9\u4e2a\u8bf7\u6c42\u5305\u542b\u4e86\u7528\u6237\u7684\u8d26\u6237\u548c\u5bc6\u7801\u3002\u7136\u540e\u6211\u4eec\u901a\u8fc7\u67d0\u4e2a\u76d1\u542cxxx\u7aef\u53e3\u7684\u540e\u7aef\u7a0b\u5e8f\u6765\u63a5\u53d7\u8fd9\u4e2aPOST\uff0c\u518d\u5bf9\u91cc\u9762\u7684\u8d26\u6237\u5bc6\u7801\u8fdb\u884c\u6821\u5bf9\u5565\u7684\u3002\n\u90a3\u4e48\u7528\u6237\u7684\u8d26\u6237\u548c\u5bc6\u7801\u5c31\u662f\u6d88\u606f\uff0c\u7528axios\u53d1\u8d77\u7684post\u8bf7\u6c42\u76f8\u5bf9\u4e8e\u5728\u5e94\u7528\u5c42\u7684\u4fe1\u606f\u4e0a\u5c01\u88c5\u4e86\u66f4\u591a\u4fe1\u606f\u3002\u540e\u7aef\u518d\u89e3\u5c01\u88c5\u62ff\u5230\u524d\u7aef\u7684\u8d26\u6237\u548c\u5bc6\u7801\u3002\n\u5f53\u7136\u8fd9\u53ea\u662f\u7c7b\u6bd4\u3002\u5b9e\u9645\u4e0a\u4f20\u8f93\u5c42\u7684\u5c01\u88c5\u662f\u7531OS\u6765\u8fdb\u884c\u5904\u7406\u7684\u3002<\/code><\/pre>\n\n\n\n<p>2.\u4f20\u8f93\u5c42\u628a\u8fd9\u4e2a\u6d88\u606f\u4f5c\u4e3a\u6709\u6548\u8f7d\u8377\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u6211\u95fb\u5230\u4e86\u82f1\u7ffb\u4e2d\u7684\u6c14\u606f\ud83e\udd14\u3002\n\u8f7d\u8377\u5230\u5e95\u662f\u4ec0\u4e48\u8bcd\u7ffb\u8bd1\u8fc7\u6765\u7684\uff0c\u8ba9\u6211\u627e\u627e\u6e90\u8bcd\u662f\u4ec0\u4e48\u3002\n\u6709\u6548\u8f7d\u8377\uff1aPayload\u3002\u6211\u76f2\u731c\u662f\u8001\u7f8e\u4ee5\u524d\u9020\u706b\u7bad\u7684\u65f6\u5019\u7528\u7684\u8fd9\u4e2a\u8bcd\u3002\u201c\u6709\u6548\u201d\u548c\u201c\u8f7d\u8377\u201d\u561b\uff0c\u5728\u8fd9\u91cc\u5176\u5b9e\u5c31\u662f\u53bb\u6389\u5c01\u88c5\u7684\u5934\u90e8\u548c\u5c3e\u90e8\u4e4b\u540e\u7684\u6709\u6548\u4fe1\u606f\u3002<\/code><\/pre>\n\n\n\n<p>\u8be5\u5206\u7ec4\u5728TCP\u4e2d\u79f0\u4e3a\u6bb5\uff08segment\uff09\uff0c\u5728UDP\u4e2d\u79f0\u4e3a\u7528\u6237\u6570\u636e\u62a5\uff08user datagram\uff09\u3002\u7136\u540e\u4f20\u8f93\u5c42\u4f20\u9012\u8be5\u5206\u7ec4\u5230\u7f51\u7edc\u5c42\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code><s>\u8bdd\u8bf4\u8fd9\u662f\u4e0d\u662f\u5728\u8bf4\u5206\u7ec4\uff08packet\uff09\u5728TCP\u7684\u4f20\u8f93\u5c42\u4e2d\u88ab\u79f0\u4e3a\u6bb5\u3002\u5728UDP\u7684\u4f20\u8f93\u5c42\u4e2d\u88ab\u79f0\u4e3a\u7528\u6237\u6570\u636e\u62a5\u3002<\/s><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u4e0d\u5bf9\uff0c\u8bf4\u53cd\u4e86\u3002TCP\u548cUDP\u90fd\u662f\u4f20\u8f93\u5c42\u7684\u534f\u8bae\u3002\u5e94\u8be5\u662fpacket\u5728\u4f20\u8f93\u5c42\u7684TCP\u534f\u8bae\u4e2d\u53eb\u6bb5\uff0c\u5728UDP\u534f\u8bae\u4e2d\u53eb\u7528\u6237\u6570\u636e\u62a5\u3002\n\u8fd9\u4e2a\u9519\u8bef\u611f\u89c9\u66f4\u80fd\u8ba9\u4eba\u5370\u8c61\u6df1\u523b\uff0c\u5c31\u4e0d\u5220\u4e86\u3002<\/code><\/pre>\n\n\n\n<p>\u5176\u7ed3\u679c\u4f5c\u4e3a\u4e00\u4e2a\u79f0\u4e3a\u6570\u636e\u62a5\uff08datagram\uff09\u7684\u7f51\u7edc\u5c42\u5206\u7ec4\u3002\u7136\u540e\uff0c\u7f51\u7edc\u5c42\u4f20\u9012\u8fd9\u4e2a\u5206\u7ec4\u5230\u6570\u636e\u94fe\u8def\u5c42\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u7528\u6237\u6570\u636e\u62a5\u548c\u6570\u636e\u62a5...emmmm<\/code><\/pre>\n\n\n\n<p>4.\u6570\u636e\u94fe\u8def\u5c42\u628a\u7f51\u7edc\u5c42\u5206\u7ec4\u4f5c\u4e3a\u6570\u636e\u548c\u6709\u6548\u8f7d\u8377\uff0c\u5e76\u4e14\u6dfb\u52a0\u4e0a\u81ea\u5df1\u7684\u5934\u90e8\u3002\u8be5\u5934\u90e8\u5305\u542b\u4e3b\u673a\u6216\u4e0b\u4e00\u8df3\u6b65\uff08\u8def\u7531\u5668\uff09\u7684\u94fe\u8def\u5c42\u5730\u5740\u3002\u5176\u7ed3\u679c\u4e3a\u4e00\u4e2a\u5e27\uff08frame\uff09\u7684\u94fe\u8def\u5c42\u5206\u7ec4\u3002\u8be5\u5e27\u88ab\u4f20\u9012\u5230\u7269\u7406\u5c42\u8fdb\u884c\u4f20\u8f93\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u9996\u5148\u7269\u7406\u5c42\u80af\u5b9a\u662f\u6ca1\u6709\u5730\u5740\u7684\uff0c\u7269\u7406\u5c42\u5168\u662fbit\u81ea\u7136\u4e0d\u5b58\u5728\u5730\u5740\u3002\u800c\u4e14\u8def\u7531\u5668\u6700\u9ad8\u4e5f\u53ea\u5230\u7f51\u7edc\u5c42\u3002\u90a3\u4e5f\u53ea\u80fd\u5305\u542b\u8def\u7531\u5668\u7684\u94fe\u8def\u5c42\u5730\u5740\u4e86\u3002<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u63a5\u4e0b\u6765\u5c31\u662f\u8def\u7531\u5668\u7684\u5c01\u88c5\u548c\u89e3\u5c01\u88c5\u4e86\u3002<\/code><\/pre>\n\n\n\n<p>1.\u5728\u6bd4\u7279\u96c6\u88ab\u6295\u9012\u5230\u6570\u636e\u94fe\u8def\u5c42\u540e\uff0c\u8fd9\u4e00\u5c42\u4ece\u5e27\u4e2d\u89e3\u5c01\u88c5\u51fa\u6570\u636e\u62a5\u5e76\u5c06\u5b83\u4f20\u9012\u5230\u7f51\u7edc\u5c42\u3002<\/p>\n\n\n\n<p>2.\u7f51\u7edc\u5c42\u53ea\u68c0\u67e5\u6570\u636e\u62a5\u5934\u90e8\u7684\u6e90\u5730\u5740\u548c\u76ee\u7684\u5730\u5740\uff0c\u67e5\u9605\u5b83\u7684\u8f6c\u53d1\u8868\u4ee5\u5bfb\u627e\u8be5\u6570\u636e\u62a5\u5c06\u88ab\u6295\u9012\u5230\u4e0b\u4e00\u8df3\u6b65\u3002\u9664\u975e\u6570\u636e\u62a5\u592a\u5927\u4ee5\u81f3\u4e8e\u4e0d\u80fd\u901a\u8fc7\u4e0b\u4e00\u94fe\u8def\u65f6\u9700\u8981\u5bf9\u5176\u8fdb\u884c\u5206\u7247\uff0c\u6570\u636e\u62a5\u7684\u5185\u5bb9\u4e0d\u5e94\u8be5\u88ab\u7f51\u7edc\u5c42\u6539\u53d8\u3002\u7136\u540e\uff0c\u6570\u636e\u62a5\u88ab\u4f20\u9012\u5230\u4e0b\u4e00\u94fe\u8def\u7684\u6570\u636e\u94fe\u8def\u5c42\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u76f8\u5f53\u4e8e\u4e00\u4e2a\u4fe1\u606f\u8981\u7ecf\u8fc7\u540c\u4e00\u4e2a\u8def\u7531\u5668\u7684\u201c\u7f51\u7edc\u5c42-\u6570\u636e\u94fe\u8def\u5c42\u201d\u4e24\u6b21\u3002\u7b2c\u4e00\u6b21\u662f\u89e3\u5c01\u88c5\u3002\u7b2c\u4e8c\u6b21\u662f\u518d\u6b21\u5bf9\u4f4d\u4e8e\u7f51\u7edc\u5c42\u7684\u6570\u636e\u62a5\u5c01\u88c5\u5e76\u4f20\u5230\u6570\u636e\u94fe\u8def\u5c42\u3002<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code has-foreground-color has-text-color has-background has-medium-font-size\" style=\"border-top-style:none;border-top-width:0px;border-right-style:none;border-right-width:0px;border-bottom-style:none;border-bottom-width:0px;border-left-color:#04c8dc;border-left-width:5px;background-color:#c6faff\"><code>\u76ee\u7684\u4e3b\u673a\u7684\u8bdd\u5176\u5b9e\u5c31\u662f\u6e90\u4e3b\u673a\u5c01\u88c5\u7684\u9006\u8fc7\u7a0b\uff0c\u4e00\u6b65\u6b65\u628apayload\u5f80\u4e0a\u4e00\u7ea7\u4f20\uff0c\u4e00\u76f4\u5230\u5e94\u7528\u5c42\u4e3a\u6b62\u3002\u6ca1\u5565\u597d\u8bb2\u7684\u3002<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>P13\u3001P14 \u5c01\u88c5\u4e0e\u89e3\u5c01\u88c5<\/p>\n","protected":false},"author":1,"featured_media":4353,"comment_status":"open","ping_status":"","sticky":false,"template":"base","format":"standard","meta":{"footnotes":""},"categories":[113,107],"tags":[114,112],"_links":{"self":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/4370"}],"collection":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/comments?post=4370"}],"version-history":[{"count":0,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/posts\/4370\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media\/4353"}],"wp:attachment":[{"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/media?parent=4370"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/categories?post=4370"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/white-night.club\/index.php\/wp-json\/wp\/v2\/tags?post=4370"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}