{"id":316723,"date":"2021-02-04T17:10:01","date_gmt":"2021-02-04T09:10:01","guid":{"rendered":"http:\/\/4563.org\/?p=316723"},"modified":"2021-02-04T17:10:01","modified_gmt":"2021-02-04T09:10:01","slug":"%e6%80%8e%e4%b9%88%e7%90%86%e8%a7%a3-tcp-%e7%b2%98%e5%8c%85%e4%b8%8e%e6%8b%86%e5%8c%85","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=316723","title":{"rendered":"\u600e\u4e48\u7406\u89e3 TCP \u7c98\u5305\u4e0e\u62c6\u5305?"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u600e\u4e48\u7406\u89e3 TCP \u7c98\u5305\u4e0e\u62c6\u5305?               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : narutow <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u8bb0\u5f97\u4e00\u4e2a\u5927\u4f6c\u8ddf\u6211\u8bf4\u8fc7, &#8220;TCP \u54ea\u6709\u4ec0\u4e48\u7c98\u5305\u62c6\u5305\u7684\u95ee\u9898, \u4eba\u5bb6\u672c\u6765\u5c31\u662f\u6d41\u5f0f\u534f\u8bae, \u4f60\u7528\u5b83\u4f20\u4f60\u7684\u7ed3\u6784\u5316\u6570\u636e, \u4f60\u662f\u505a\u6570\u636e\u7684\u5e8f\u5217\u5316\u548c\u53cd\u5e8f\u5217\u5316, \u800c\u4e0d\u662f\u5728\u514b\u670d TCP \u7684\u7f3a\u70b9.&#8221;<\/p>\n<p>\u8fd9\u6837\u7684\u7406\u89e3\u662f\u5426\u51c6\u786e\u5462, \u5927\u5bb6\u4ec0\u4e48\u770b\u6cd5. \u672c\u83dc\u9e21\u611f\u5230\u7591\u60d1~<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>99<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"5071544\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : GGGG430 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56de\u590d\u4f60\u7684\u8fd9\u4e2a\u4eba\u5176\u5b9e\u4e5f\u662f\u4ece\u7f51\u4e0a\u770b\u7684\u522b\u4eba\u7684\u672f\u8bed                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071545\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : kyuuseiryuu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u672c\u8d28\u4e0a\u5c31\u662f\u8981\u4f60\u91cd\u65b0\u8bbe\u8ba1\u4e00\u4e2a\u5e94\u7528\u5c42\u534f\u8bae\uff0cover \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071546\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : bengol <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u54ea\u513f\u53d1\u660e\u7684\u4e71\u4e03\u516b\u7cdf\u7684\u540d\u8bcd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071547\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56e0\u4e3a TCP \u8bbe\u8ba1\u5c31\u662f\u8fd9\u6837\u7684\uff0c\u800c\u4e14\u8bbe\u8ba1 TCP \u7684\u4eba\u4e5f\u53ea\u662f\u8bbe\u8ba1\u6210\u4e86\u6d41\uff0c\u4ee5\u81f3\u4e8e TCP \u91cc\u9762\u6709\u4e00\u4e2a tcp_nodely \u7684\u5f00\u5173\uff0c\u56e0\u4e3a\u5c0f\u5305<br \/>\u7528 TCP \u53d1\u8fc7\u53bb\u4e0d\u5212\u7b97\uff08\u62a5\u6587\u5934\u53ef\u80fd\u6bd4\u62a5\u6587\u672c\u4f53\u8fd8\u5927\uff09\uff0c\u64cd\u4f5c\u7cfb\u7edf\u8981\u5ef6\u8fdf\u4e00\u4f1a\u770b\u4f60\u6709\u6ca1\u6709\u7ee7\u7eed\u5199\u5165\uff0c\u7136\u540e\u51d1\u4e00\u8d77\u518d\u53d1\u51fa\u53bb\uff0c\u4f46\u662f\u5bf9\u4e8e telnet \u8fd9\u79cd\u547d\u4ee4\u884c\uff0c\u4f60\u5ef6\u8fdf\u53d1\u8fc7\u53bb\uff0c\u8fdc\u7a0b\u64cd\u4f5c\u670d\u52a1\u5668\u7684\u4eba\u5c31\u6709\u5ef6\u8fdf\uff0c\u4eba\u7528\u8d77\u6765\u5c31\u4e0d\u723d\u4e86\u3002<\/p>\n<p>TCP \u6d41\u5f0f\u4f20\u8f93\u672c\u8d28\u4e0a\u5e76\u6ca1\u6709\u89e3\u51b3\u4e0a\u5c42\u5e94\u7528\u7a0b\u5e8f\u5458\u7684\u95ee\u9898\uff0c\u7a0b\u5e8f\u5458\u8981\u7684\u662f \u7c7b\u4f3c HTTP Websocket \u8fd9\u79cd\u4e00\u95ee\u4e00\u7b54\u7684\u8bbe\u8ba1\uff0c\u800c\u4e14\u8fd9\u79cd\u8bbe\u8ba1\u7684\u53ef\u9760\u6027\u7531\u5e95\u5c42\u6765\u7ef4\u62a4\uff0c\u4e0a\u5c42\u7684\u5e94\u7528\u903b\u8f91\u4e0d\u9700\u8981\u5199\u4ee3\u7801\u6765\u5c3d\u53ef\u80fd\u7ef4\u62a4\u8fd9\u4e2a\u6570\u636e\u4f20\u8f93\u53ef\u9760\u6027\uff0c\u4f46\u662f\u9664\u4e86 TCP \u4e00\u4e2a\u80fd\u6253\u90fd\u6ca1\u6709\uff0c\u4f60\u5c31\u53ea\u80fd\u7528 UDP\uff0c\u4f46 UDP \u65e2\u4e0d\u4fdd\u8bc1 \u5305\u7684\u987a\u5e8f\uff0c\u4e5f\u4e0d\u4fdd\u8bc1\u5305\u4e00\u5b9a\u9001\u5230\uff0c\u8fd8\u5f97\u5199\u4e00\u5927\u5806\u903b\u8f91\u53bb\u7ef4\u62a4\u4f1a\u8bdd\u72b6\u6001\uff0c\u6240\u4ee5\u5927\u5bb6\u7eb7\u7eb7\u7528 TCP \u6765\u505a\u53ef\u9760\u6027\uff0c\u50cf HTTP \u91cc\u9762 \u5b9e\u9645\u4e0a\u5c31\u662f\u6d4f\u89c8\u5668\u7528 HTTP \u5934\u544a\u8bc9 http \u670d\u52a1\u5668\uff0c\u6211\u5269\u4e0b\u7684 body \u5185\u5bb9\u6709\u591a\u5c11\uff0c\u670d\u52a1\u5668\u5144\u5f1f\u4f60\u6162\u6162\u8bfb\uff0c\u8bfb\u5b8c\u8fd9\u4e48\u591a\u5c31\u7b97\u662f\u6211\u4e00\u4e2a http \u8bf7\u6c42\u7684\u5305\uff0c\u670d\u52a1\u5668\u5144\u5f1f\u4f60\u5343\u4e07\u522b\u641e\u6df7\u7403\u4e86\u628a\u4e0b\u4e00\u4e2a http \u7684\u62a5\u6587\u5934 \u4e00\u8d77\u5f53\u4e00\u4e2a http \u5305\u7ed9\u89e3\u6790\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071548\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div> <img decoding=\"async\" src=\"http:\/\/4563.org\/wp-content\/uploads\/2021\/02\/20210205_601cf785d6272.jpg\" rel=\"noreferrer\" referrerpolicy=\"no-referrer\" alt=\"\u600e\u4e48\u7406\u89e3 TCP \u7c98\u5305\u4e0e\u62c6\u5305?\"> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071549\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : carlclone <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5148\u7406\u89e3\u5b57\u8282\u6d41&#8230;.. \u6bd4\u5982 Java \u7684\u5404\u79cd Stream , \u7136\u540e\u7c7b\u6bd4\u5c31\u61c2\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071550\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dcalsky <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5750\u7b49\u7c98\u5305\u8b66\u5bdf\u5230\u6765\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071551\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Archeb <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6708\u7ecf\u95ee\u9898\uff0c\u7b54\u5230\u4e0d\u60f3\u7b54\u4e86&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071552\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chanlk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u8fd1\u5de5\u4f5c\u521a\u597d\u9047\u5230\u4e86\u8fd9\u4e2a\u95ee\u9898, \u524d\u6765\u8bf4\u4e00\u4e0b:<\/p>\n<p>\u5de5\u4f5c\u662f\u8d1f\u8d23\u642d\u4e00\u4e2a Server, \u7528\u6765\u63a5\u6536\u4e00\u4e9b\u667a\u80fd\u5bb6\u7535\u4f20\u4e0a\u6765\u7684\u6570\u636e;<\/p>\n<p>\u8fd9\u4e9b\u6570\u636e\u662f\u786c\u4ef6\u5382\u5546\u81ea\u5b9a\u4e49\u7684\u534f\u8bae, \u5f00\u5934\u548c\u7ed3\u5c3e\u6709\u4e00\u4e9b\u6807\u8bb0 \u6574\u4f53\u683c\u5f0f\u5982 [ \u8d77\u59cb\u7801 \u957f\u5ea6 \u6570\u636e \u7ed3\u675f\u7801 ]<\/p>\n<p>\u5bf9\u4e8e\u6211\u670d\u52a1\u5668\u6765\u8bf4, \u6211\u5f53\u7136\u662f\u5e0c\u671b\u6bcf\u6b21\u53d6\u5230\u7684\u6d88\u606f\u90fd\u662f\u4e00\u6761\u5b8c\u6574\u7684\u6d88\u606f, \u4e0d\u591a\u4e0d\u5c11\u4e0d\u9519\u521a\u521a\u597d<br \/>\u4f46\u662f\u5b9e\u9645\u4e0a, \u56e0\u4e3a\u5bf9\u4e8e tcp \u6765\u8bf4\u8fd9\u4e2a, \u4ed6\u5728\u4f20\u8f93\u7684\u65f6\u5019, \u5e76\u4e0d\u4f1a\u7406\u4f1a\u4f60\u5e94\u7528\u5c42\u662f\u600e\u4e48\u5b9a\u4e49\u7684, \u53ea\u7ba1\u5f80\u5916\u53d1<br \/>\u6211\u4e0a\u9762\u8bf4\u7684\u4e00\u6761\u6570\u636e, \u5728\u5230\u8fbe\u6211\u670d\u52a1\u5668\u7684\u65f6\u5019, \u53ef\u80fd\u88ab\u5206\u6210\u4e86\u597d\u51e0\u4e2a\u6570\u636e\u5305<br \/>\u8fd9\u4e2a\u65f6\u5019\u5c31\u662f\u6240\u8c13\u7684\u62c6\u5305\u4e86, \u5982\u679c\u670d\u52a1\u7aef\u4e0d\u5bf9\u53d6\u5230\u7684\u6570\u636e\u505a\u5408\u6cd5\u6821\u9a8c\u7684\u8bdd, \u5c31\u4f1a\u51fa\u95ee\u9898\u4e86<\/p>\n<p>\u670d\u52a1\u7aef\u8fd9\u4e2a\u65f6\u5019\u5c31\u8981\u5bf9\u53d6\u5230\u7684\u6570\u636e, \u6839\u636e\u5e94\u7528\u5c42\u5b9a\u4e49\u7684\u534f\u8bae, \u5f53\u6ee1\u8db3\u534f\u8bae\u7684\u65f6\u5019, \u624d\u5c06\u6570\u636e\u4ece buffer \u4e2d\u53d6\u51fa<br \/>\u7136\u540e\u518d\u8fdb\u884c\u4e1a\u52a1\u64cd\u4f5c.<\/p>\n<p>\u5173\u952e\u662f\u7406\u89e3 TCP \u7684\u6d41\u7684\u6982\u5ff5\u5427~ \u8fd9\u4e2a\u6d41\u662f\u4e00\u4e2a\u6ca1\u5934\u6ca1\u5c3e\u7684\u4e1c\u897f, \u6240\u4ee5\u9700\u8981\u957f\u5ea6, \u6807\u8bb0\u7b26\u4e4b\u7c7b\u7684\u6765\u5b9a\u4e49\u6570\u636e\u7684\u8fb9\u754c<br \/>\u4e2a\u4eba\u7684\u7406\u89e3\u5927\u81f4\u662f\u8fd9\u6837\u5427.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071553\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : soulzz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528 netty \u968f\u4fbf\u53bb\u89e3\u6790\u4efb\u610f\u4e00\u4e2a\u57fa\u4e8e TCP \u7684\u5e38\u89c1\u534f\u8bae\u4f60\u5c31\u660e\u767d\u4e86<br \/>\u6211\u62ff JT808 \u4e3e\u4e2a\u4f8b\u5b50 0x7E \u4f5c\u4e3a\u5305\u4e0e\u5305\u4e4b\u95f4\u7684\u533a\u5206<br \/>\u5305\u4e2d\u6709 7E \u7684\u8f6c\u4e49\u4e3a 7D01\uff0c\u4fdd\u4e2d\u8fd8\u4f1a\u6709 BCC \u6821\u9a8c\u4f4d\uff0c\u53bb\u9664\u5305\u5934\u5305\u5c3e\u540e\u7684\u957f\u5ea6\u4f4d<\/p>\n<p>\u81f3\u4e8e\u4e3a\u4ec0\u4e48\u4e00\u5b9a\u8981\u6709\u533a\u5206\uff1f\u8bbe\u5907\u51e0\u6beb\u79d2\u53d1\u9001\u51e0\u5341\u4e2a\u5305\u90fd\u6709\uff0c\u7ecf\u5e38\u53d1\u751f\u7684\u60c5\u51b5\u662f\u4e00\u4e2a\u5305\u9644\u5e26\u597d\u51e0\u4e2a\u5269\u4e0b\u7684\u5305\u4f5c\u4e3a\u4e00\u6b21\u53d1\u9001\u7684\u6570\u636e\u3002\u4e3a\u4e86\u786e\u4fdd\u6bcf\u4e00\u4e2a\u5305\u5185\u5bb9\u5b8c\u6574\u65e0\u9519\uff0c\u6240\u4ee5\u5fc5\u987b\u8981\u6709\u5904\u7406\u7c98\u5305\u7684\u903b\u8f91\uff0c\u6700\u5e38\u89c1\u7684\u5c31\u662f\u56fa\u5b9a\u5305\u5934\u5305\u5c3e+\u5305\u5185\u5bb9\u8f6c\u4e49+\u5185\u5bb9\u957f\u5ea6\u4f4d+\u6821\u9a8c\u7801<\/p>\n<p>\u6709\u4e9b iot \u8bbe\u5907\u53d1\u5305\u9891\u7387\u4f4e\uff0c\u53ef\u80fd\u51e0\u5341\u79d2\u624d\u53d1\u4e00\u4e2a\u5305\uff0c\u7406\u8bba\u4e0a\u8fd9\u6837\u968f\u4fbf\u57fa\u4e8e tcp \u81ea\u5b9a\u4e49\u534f\u8bae\u90fd\u53ef\u4ee5\uff0c\u7c98\u4e0d\u7c98\u5305\u5b8c\u5168\u4e0d\u7528\u8003\u8651\uff0c\u4f46\u662f\u5b9e\u9645\u60c5\u51b5\u662f\uff0c\u4e00\u4e2a\u670d\u52a1\u5668\u53ef\u80fd\u4f1a\u5904\u7406\u4e0a\u4e07\u5341\u4e07\u4e2a iot \u8bbe\u5907\u8fde\u63a5\uff0c\u4f60\u8fd9\u4e2a\u8bbe\u5907\u53d1\u9001\u7684\u62a5\u6587\u540e\u9762\u9a6c\u4e0a\u8ddf\u7740\u5176\u5b83\u8bbe\u5907\u7684\u62a5\u6587\u5b8c\u5168\u662f\u53ef\u80fd\u53d1\u751f\u7684                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071554\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : soulzz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f53\u7136\uff0c\u5982\u679c\u662f udp \u7684\u8bdd\u5c31\u4e0d\u7528\u8003\u8651\u8fd9\u4e48\u591a\uff0c\u8bbe\u5907\u76f4\u63a5\u53d1\u5b8c\u6574\u5305\uff0c\u5305\u4e2d\u6709\u6821\u9a8c\u4f4d\u6821\u9a8c\u5c31\u53ef\u4ee5\u4e86\uff0c\u670d\u52a1\u5668\u6536\u4e0d\u6536\u5f97\u5230\u4e0d\u7528\u8003\u8651                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071555\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewinlan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5b66 go\uff0c\u81ea\u7136\u5c31\u61c2\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071556\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Mutoo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             TLDR: \u4e1a\u52a1\u4e2d\u4f7f\u7528 TCP \u534f\u8bae\u83b7\u5f97\u4e00\u4e2a\u6709\u5e8f\u7684\u7a33\u5b9a\u7684\u6d41\u4f5c\u4e3a\u6d88\u606f\u7684\u8f7d\u4f53\u3002\u4f46\u5728\u5b9e\u8df5\u4e2d\u5e94\u7528\u5c42\u4e0d\u65ad\u5411\u4f20\u8f93\u5c42\u8f6e\u5faa\u7f13\u51b2\u533a\u7684\u6570\u636e\u7684\u65f6\u5019\u4f1a\u5f97\u5230\u7247\u6bb5\u5316\u7684\u6570\u636e\uff0c\u867d\u7136\u6709\u5e8f\u4f46\u662f\u8fd9\u4e9b\u7f13\u51b2\u4e2d\u7684\u6570\u636e\u53ef\u80fd\u5f52\u5c5e\u662f\u591a\u4e2a\u4e0d\u540c\u7684\u6d88\u606f\uff08\u9020\u8bcd\uff1a\u7c98\u5305\uff09\u3002\u5c06\u8fd9\u4e9b\u6570\u636e\u4ee5\u7279\u5b9a\u5f62\u5f0f\uff08\u4f8b\u5982\u5305\u957f\u5ea6(length)+\u8d1f\u8f7d(payload)\uff09\u62c6\u5206\u6216\u91cd\u7ec4\u6210\u903b\u8f91\u6d88\u606f\uff08\u9020\u8bcd\uff1a\u62c6\u5305\uff09\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071557\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : laminux29 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1.TCP \u901a\u4fe1\u4e2d\u4e0d\u5b58\u5728 [\u9ecf\u5305] \u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<p>2.\u9047\u5230 [\u9ecf\u5305\u95ee\u9898] \u7684\u4eba\uff0c\u57fa\u672c\u4e0a\u90fd\u662f\u56e0\u4e3a\u8fd9\u65b9\u9762\u5b66\u4e60\u4e0d\u8fc7\u5173\u3002<\/p>\n<p>3. [\u9ecf\u5305\u95ee\u9898] \u7684\u53d1\u5c55\u53f2\u662f\uff1a<br \/> \u5f88\u591a\u5e74\u524d\uff0c\u4e00\u5806\u57fa\u7840\u4e0d\u624e\u5b9e\u7684\u9ed1\u5ba2\uff0c\u4ee5\u53ca\u4e0a\u4e00\u4ee3\u7684\u7a0b\u5e8f\u5458\u4eec\uff0c\u7ecf\u5e38\u7528 VC \u5199\u5404\u79cd Windows \u5ba2\u6237\u7aef\u7a0b\u5e8f\u3002\u4e00\u65b9\u9762\u4ed6\u4eec\u9700\u8981\u8fdb\u884c\u901a\u4fe1\u7f16\u7a0b\uff0c\u53e6\u4e00\u65b9\u9762\u7531\u4e8e\u8fd9\u90e8\u5206\u5185\u5bb9\u5bf9\u4ed6\u4eec\u7684\u6c34\u5e73\u800c\u8a00\u6bd4\u8f83\u6df1\u5965\uff0c\u4ed6\u4eec\u638c\u63e1\u4e0d\u597d\uff0c\u56e0\u800c\u91c7\u7528\u201c\u5982\u4f55\u7b80\u5355\u5c31\u5982\u4f55\u6765\u201d\u7684\u7b56\u7565\uff0c\u9996\u5f53\u5176\u51b2\u5c31\u662f udp \u3002<\/p>\n<p> VC \u7684 UDP \u7f16\u7a0b\uff0c\u4e00\u6761\u6570\u636e\u53d1\u4e00\u4e2a\u6570\u636e\u5305\uff0c\u81ea\u7136\u4e0d\u5b58\u5728\u754c\u9650\u95ee\u9898\uff1b\u540c\u65f6 VC \u7684 UDP \u7f16\u7a0b\uff0c\u4ee3\u7801\u7b80\u5355\uff0c\u6536\u53d1\u903b\u8f91\u7b80\u5355\u660e\u4e86\uff0c\u56e0\u6b64\u6df1\u53d7\u8fd9\u7fa4\u4eba\u7684\u6b22\u8fce\u4e0e\u8ffd\u6367\u3002<\/p>\n<p> \u63a5\u7740\uff0c\u5929\u65f6\u5730\u5229\u4eba\u548c\uff0c\u8fd9\u7fa4\u4eba\u7684\u65f6\u4ee3\uff0c\u6070\u597d\u662f\u5355\u7269\u7406\u6838 CPU \u5927\u884c\u5176\u9053\uff0c\u6700\u591a\u4e5f\u53ea\u4f1a\u9047\u4e0a\u5355\u7269\u7406\u6838\u7684\u8d85\u7ebf\u7a0b CPU\uff0c\u56e0\u6b64\u5373\u4f7f\u628a UDP \u6362\u6210 TCP\uff0c\u53ea\u8981\u6a21\u5757\u62c6\u5206\u5f97\u5f53\uff0c\u5c31\u7b97\u662f\u5e76\u884c\u7684\u7a0b\u5e8f\uff0c\u4e5f\u4e0d\u6613\u9ecf\u5305\u3002\u4e0d\u8fc7\u4e5f\u53ea\u662f\u4e0d\u6613\u800c\u5df2\uff0c\u8fd9\u4e9b\u7a0b\u5e8f\u65f6\u523b\u6709\u9ecf\u5305\u51fa\u9519\u7684\u98ce\u9669\uff0c\u56e0\u6b64\uff0c\u4ed6\u4eec\u90a3\u65f6\u7684\u7a0b\u5e8f\uff0c\u5f88\u4e0d\u7a33\u5b9a\uff0c\u7ecf\u5e38\u9700\u8981\u5173\u95ed\u91cd\u542f\u3002<\/p>\n<p> \u4ed6\u4eec\u7684\u5386\u53f2\uff0c\u4e5f\u5c31\u5230\u6b64\u4e3a\u6b62\u4e86\u3002<\/p>\n<p> \u7531\u4e8e\u901a\u4fe1\u5e94\u7528\u7684\u590d\u6742\u6027\uff0c\u4ee5\u53ca\u7528\u6237\u9700\u6c42\u8fdb\u4e00\u6b65\u63d0\u51fa\u66f4\u9ad8\u7684\u8981\u6c42\uff0c\u5f53\u4ed6\u4eec\u5c1d\u8bd5\u591a\u6761\u6570\u636e\u653e\u5728\u4e00\u4e2a UDP \u6570\u636e\u5305\u91cc\u8fdb\u884c\u53d1\u9001\u65f6\uff0c\u5c31\u4f1a\u51fa\u73b0\u6240\u8c13\u7684 [\u9ecf\u5305] \u95ee\u9898\u3002\u8fd9\u662f\u5176\u4e00\u3002\u4ed6\u4eec\u6240\u8c13\u7684 [\u7c98\u5305] \uff0c\u4e5f\u5c31\u662f\u4ed6\u4eec\u672c\u6765\u7684\u6536\u53d1\u903b\u8f91\u662f\uff0c\u4e00\u6b21\u53d1\u9001\u6216\u63a5\u6536\uff0c\u53ea\u5904\u7406\u4e00\u4e2a\u6570\u636e\u5305\uff0c\u7136\u540e\u4e00\u4e2a\u6570\u636e\u5305\u91cc\uff0c\u53ea\u5b58\u653e\u4e00\u6761\u6570\u636e\u3002\u73b0\u5728\u4ed6\u4eec\u628a\u591a\u6761\u6570\u636e\u653e\u5728\u4e00\u4e2a\u6570\u636e\u5305\u91cc\uff0c\u751a\u81f3\u591a\u6761\u6570\u636e\u653e\u5728\u591a\u4e2a\u6570\u636e\u5305\u91cc\uff0c\u4e8e\u662f\u5728\u53d1\u9001\u4e0e\u63a5\u6536\u7684\u4e1a\u52a1\u5c31\u5168\u53d8\u4e86\uff0c\u540c\u65f6\u53c8\u9700\u8981\u5f15\u5165\u5408\u5e76\u3001\u62c6\u5206\u3001\u5904\u7406\u987a\u5e8f\u4ee5\u53ca\u8003\u8651\u6027\u80fd\u95ee\u9898\uff0c\u6574\u4e2a\u6d41\u7a0b\u53d8\u5f97\u975e\u5e38\u590d\u6742\uff0c\u4ed6\u4eec\u5904\u7406\u4e0d\u4e86\uff0c\u7a0b\u5e8f\u7ecf\u5e38\u51fa\u73b0\u95ee\u9898\u3002<\/p>\n<p> UDP \u529f\u80fd\u6709\u9650\uff0c\u56e0\u6b64\u4ed6\u4eec\u603b\u4f1a\u9700\u8981\u7528\u5230 TCP \u3002\u6b64\u65f6\uff0c\u7531\u4e8e\u6c34\u5e73\u7684\u5c40\u9650\u6027\uff0c\u5f53\u4ed6\u4eec\u6309\u7167 UDP \u7684\u65b9\u5f0f\u6765\u8fdb\u884c TCP \u901a\u4fe1\u65f6\uff0c\u5c31\u975e\u5e38\u5bb9\u6613\u9047\u5230\u6240\u8c13\u7684 [\u9ecf\u5305] \u95ee\u9898\u3002\u8fd9\u662f\u5176\u4e8c\u3002<\/p>\n<p> \u8fd9\u5e2e\u4eba\u6c34\u5e73\u672c\u6765\u5c31\u6b20\u7f3a\u63d0\u9ad8\uff0c\u518d\u9047\u4e0a\u90a3\u65f6\u53cc\u7269\u7406\u6838\u4ee5\u53ca\u66f4\u591a\u7269\u7406\u6838\u7684 CPU \u5f00\u59cb\u666e\u53ca\uff0c\u591a\u7ebf\u7a0b\u4e0e\u5e76\u884c\u7f16\u7a0b\u5c31\u8ddf\u7740\u5f00\u59cb\u6d41\u884c\uff0c\u8fd9\u5bf9\u4e8e\u7a0b\u5e8f\u5458\u63d0\u51fa\u4e86\u66f4\u9ad8\u7684\u8981\u6c42\u3002\u6b64\u65f6\uff0c\u8fd9\u7fa4\u4eba\u5728\u5e76\u884c\u7a0b\u5e8f\u91cc\u6309\u7167\u4ee5\u524d\u4e32\u884c\u7a0b\u5e8f\u7684\u8001\u8def\u5b50\u8fdb\u884c\u901a\u4fe1\uff0c\u6ce8\u5b9a\u4f1a\u9047\u5230\u9ecf\u5305\u95ee\u9898\u3002\u8fd9\u662f\u5176\u4e09\u3002<\/p>\n<p> \u4ee5\u4e0a\u4e09\u79cd\u573a\u666f\uff0c\u88ab\u8fd9\u5e2e\u4eba\u628a\u8fd9\u4e2a\u95ee\u9898\u603b\u7ed3\u51fa\u6765\uff0c\u79f0\u4e4b\u4e3a [\u9ecf\u5305] \u95ee\u9898\uff0c\u5e76\u4e14\u5728\u7f51\u7edc\u5404\u5904\u7559\u4e0b\u8fd9\u4e2a\u95ee\u9898\u7684\u8be6\u8ff0\uff0c\u4ee5\u53ca\u4e00\u5806\u53e4\u7075\u7cbe\u602a\u5600\u7b11\u7686\u975e\u7684\u89e3\u51b3\u65b9\u6848\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071558\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6cbe\u5305\u5c31\u662f\u81ea\u5df1\u52a0\u620f\uff0c\u672c\u8eab\u5c31\u662f\u6d41\u5f0f\u534f\u8bae\u54ea\u6765\u7684\u6cbe\u5305\u3002\u8981\u63a7\u5236\u5e95\u5c42\u4f20\u8f93\u65b9\u5f0f\u53bb\u7528 udp \u53bb\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071559\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Leigg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7c98\u5305\u8b66\u5bdf\u8fd8\u6709\u4e09\u5341\u79d2\u5230\u8fbe\u6b64\u8d34                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071560\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l00t <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5426\u8ba4\u201d\u7c98\u5305\u201d\u95ee\u9898\u7684\u4eba\u624d\u662f\u7406\u89e3\u80fd\u529b\u6709\u95ee\u9898\u3002\u8fd9\u91cc\u8bf4\u7684 &#8220;\u5305\u201d\u53c8\u4e0d\u662f\u6307 TCP \u7684\u5305\u3002TCP \u662f\u6d41\u5f0f\u534f\u8bae\u81ea\u7136\u662f\u6ca1\u5305\uff0c\u4f46\u662f\u5e94\u7528\u5c42\u7684\u4e1a\u52a1\u6709\u5305\u554a\u3002\u4e00\u8bf4\u6d41\u534f\u8bae\u5c31\u6ca1\u6709\u201c\u7c98\u5305\u201d\uff0c\u662f\u6839\u672c\u90fd\u6ca1\u5f04\u6e05\u695a\u522b\u4eba\u8bf4\u7684\u4ec0\u4e48\u6982\u5ff5\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071561\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : huskar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u77e5\u591a\u5c11\u5e74\u524d\u7684\u4e8c\u6d41\u7a0b\u5e8f\u5458\uff0c\u5728\u5bf9 tcp \u4e00\u77e5\u534a\u89e3\u7684\u60c5\u51b5\u4e0b\u641e\u51fa\u6765\u8fd9\u4e48\u4e00\u79cd\u53eb\u6cd5\uff0c\u7adf\u80fd\u9057\u6bd2\u81f3\u6b64\uff0c\u8bef\u5bfc\u65e0\u6570\u540e\u4eba\uff0c\u545c\u547c\u54c0\u54c9\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071562\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l00t <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u800c\u4e14\u63d0\u51fa &#8220;TCP \u7c98\u5305\u95ee\u9898\u201d \u53c8\u4e0d\u662f\u8bf4 TCP \u534f\u8bae\u6709\u4ec0\u4e48\u7f3a\u9677\uff0c\u800c\u662f\u63cf\u8ff0\u4e86\u8fd9\u4e48\u4e00\u4e2a\u73b0\u8c61\u3002\u4f60\u8981\u7528 TCP \u90a3\u4f60\u81ea\u7136\u8981\u5904\u7406\u8fd9\u4e2a\u95ee\u9898\uff0c\u5904\u7406\u529e\u6cd5\u4e00\u822c\u8981\u4e48\u8bbe\u7f6e\u957f\u5ea6\u4fe1\u606f\uff0c\u8981\u4e48\u8bbe\u7f6e\u8fb9\u754c\u3002\u56e0\u4e3a\u8fd9\u70b9\u5c31\u53bb\u7528 UDP \uff1f\u56e0\u564e\u5e9f\u98df\u4e48\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071563\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jim9606 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u5565\u95ee\u9898\u3002<\/p>\n<p>TCP \u672c\u6765\u662f\u4e00\u4e2a\u6d41\u4f20\u8f93\u534f\u8bae\uff08\u6570\u636e\u4e0d\u5206\u5757\uff0c\u4fdd\u8bc1\u6709\u5e8f\uff0c\u4e5f\u5c31\u662f\u53ea\u4fdd\u8bc1\u591a\u6b21 recv \u7684\u6570\u636e\u4f9d\u987a\u5e8f\u62fc\u8d77\u6765\u4fdd\u6301\u539f\u6837\uff09\uff0c\u504f\u8981\u628a\u5b83\u5f53\u6210\u4e00\u4e2a\u6d88\u606f\u4f20\u8f93\u534f\u8bae\uff08\u6570\u636e\u5206\u5757\uff0c\u4fdd\u8bc1\u6709\u5e8f\uff0c\u4fdd\u8bc1\u4e00\u6b21 send \u5bf9\u5e94\u4e00\u6b21 recv \uff09\u6765\u7528\u3002<br \/>\u4e0d\u5de7\u7684\u662f\u5728\u73af\u56de\u7f51\u7edc\u4ee5\u53ca\u77ed\u9014\u7f51\u7edc\u91cc\u8c03\u8bd5\u65f6\uff0c\u8fd9\u79cd\u8bef\u7528\u5e76\u4e0d\u4f1a\u51fa\u95ee\u9898\u3002<\/p>\n<p>\u5982\u679c\u4e0d\u662f\u6027\u80fd\u6216\u8005\u6548\u7387\u539f\u56e0\uff0c\u5efa\u8bae\u7528 WebSocket\uff0c\u8fd9\u662f\u6b63\u513f\u516b\u7ecf\u7684\u6d88\u606f\u534f\u8bae\uff0c\u53ef\u4ee5\u7701\u6389\u5b9a\u754c\u7684\u9ebb\u70e6\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071564\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @l00t #19 \u662f\u6839\u672c\u5c31\u4e0d\u5b58\u5728\u8fd9\u79cd\u6240\u8c13\u7684\u201c\u73b0\u8c61\u201d\uff0c\u4f60\u8bfb\u5199\u6587\u4ef6\u3001\u6253 log \u7684\u65f6\u5019\u600e\u4e48\u6ca1\u9047\u5230\u8fc7\u201c\u7c98\u5305\u201d\uff1f<br \/>\u8bf4\u5230\u5e95\u8fd8\u662f\u6ca1\u628a tcp \u5f53\u6d41\u770b\u5f85\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071565\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf4\u8bdd\u8bf4\u592a\u5feb\u4e86\uff0c\u6ca1\u5e26\u6807\u70b9\uff0c\u5c31\u662f\u7c98\u5305                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071566\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cs419 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7c98\u5305\u662f tcp \u7f16\u7a0b \u7684\u96fe\u91cc\u770b\u82b1<br \/>\u4f60\u60f3\u4e86\u89e3 tcp \u7f16\u7a0b \u5374\u6ca1\u5b9e\u9645\u7ecf\u9a8c\u7684 \u4ea7\u751f\u4e86\u9519\u8bef\u7684\u8ba4\u77e5<\/p>\n<p>\u5efa\u8bae\u901a\u8fc7\u4e00\u4e2a\u5b9e\u9645\u573a\u666f\u53bb\u5b66\u4e60 <br \/>\u5c1d\u8bd5\u5199\u4e2a\u8fdc\u7a0b\u8c03\u7528 \u6216\u8005\u8de8\u8bed\u8a00\u8c03\u7528 \u7684\u4f8b\u5b50 <br \/>\u5199\u51fa\u6765 \u4f60\u5c31\u4e0d\u4f1a\u518d\u60f3\u7c98\u5305\u7684\u6982\u5ff5\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071567\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : seanxx <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ee1\u8d34\u5632\u8bbd,\u9119\u5937&#8230;..<br \/>\u592a\u81ed\u4e86\u8fd9\u6c1b\u56f4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071568\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : reedthink <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             TCP \u8be6\u89e3\u6ca1\u770b\u5b8c\u5427\uff0c\u9644\u4e00\u53e5\u539f\u6587\uff1a\u201c\u4e24\u4e2a\u5e94\u7528\u7a0b\u5e8f\u901a\u8fc7 TCP \u8fde\u63a5\u4ea4\u6362 8bit \u5b57\u8282\u6784\u6210\u7684\u5b57\u8282\u6d41\u3002\u201d <br \/>ps\uff1a\u521b\u9020\u7c98\u5305\u6982\u5ff5\u7684\u4eba\uff0c\u4f3c\u4e4e\u5bf9 TCP \u6709\u70b9\u8bef\u89e3                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071569\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Immortal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @seanxx #24 <br \/>\u8fd9\u8d34\u53cd\u800c\u662f\u6211\u89c1\u8fc7\u8ba4\u771f\u79d1\u666e\u6570\u6700\u591a\u7684\u7c98\u5305\u8d34                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071570\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yolee599 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5bf9\uff0c\u6211\u5c31\u662f\u7c98\u5305\u8b66\u5bdf\uff01 TCP \u4e0d\u5b58\u5728\u7c98\u5305\u8bf4\u6cd5\uff01 TCP \u4e0d\u5b58\u5728\u7c98\u5305\u8bf4\u6cd5\uff01 TCP \u4e0d\u5b58\u5728\u7c98\u5305\u8bf4\u6cd5\uff01                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071571\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nicebird <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3b\u8981\u662f\u67d0\u4e9b\u4eba\u628a\u7c98\u5305\u5f53\u6210\u4e00\u4e2a\u95ee\u9898\uff0c\u7136\u540e\u5199\u6587\u7ae0\u89e3\u51b3\u3002\u5b9e\u9645\u4e0a\u7c98\u5305\u53ea\u662f\u57fa\u4e8e tcp \u8bbe\u8ba1\u53d1\u6d88\u606f\u7684\u8868\u73b0\uff0c\u53ea\u8981\u6b63\u786e\u7406\u89e3 tcp \u662f\u6d41\u5f0f\u7684\u5c31\u660e\u767d\u4e86\u4e00\u5b9a\u4f1a\u6709\u6240\u8c13\u7684\u7c98\u5305\u73b0\u8c61\u3002<br \/>\u5f53\u7136\u5b9e\u8df5\u4e0a\u4e5f\u80fd\u5199\u51fa\u4e00\u4e9b\u4e0d\u62c6\u5305\u76f4\u63a5\u6536\uff0c\u76f4\u63a5\u5f3a\u8f6c\u5c31\u80fd\u7528\u7684\u60c5\u51b5\u3002\u90a3\u662f\u56e0\u4e3a\u6d88\u606f\u53d1\u7684\u592a\u6162\u3001\u5305\u592a\u5c0f\uff0c\u521a\u597d tcp \u653e\u5728\u4e00\u4e2a ip \u5305\u91cc\u53d1\u4e86\u51fa\u53bb\uff0c\u6536\u5230\u540e\u521a\u597d\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u5305\u7f62\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071572\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jaron0608 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             TCP \u662f\u4e00\u4e2a\u9762\u5411\u5b57\u8282\u6d41\u7684\u534f\u8bae\uff0c\u5b83\u7684\u4efb\u52a1\u5c31\u662f\u5728\u63d0\u4f9b\u6d41\u91cf\u63a7\u5236\u3001\u62e5\u585e\u63a7\u5236\u7b49\u7279\u6027\u7684\u524d\u63d0\u4e0b\uff0c\u5c06 Payload \u4e2d\u7684\u4e0a\u5c42\u534f\u8bae\u6570\u636e\u5b8c\u6210\u53ef\u9760\u7684\u4f20\u8f93\u3002<\/p>\n<p>\u5b83\u5e76\u4e0d\u5173\u5fc3 Payload \u4e2d\u7684\u6570\u636e\u683c\u5f0f\uff0c\u8fd9\u91cc\u6240\u8bf4\u7684\u201c\u5305\u201d\u7684\u5305\u5b9e\u9645\u4e0a\u662f\u4e0a\u5c42\u5e94\u7528\u5c42\u534f\u8bae\u7684 Header+body\uff0c\u5e76\u4e0d\u662f TCP \u6570\u636e\u5305\u3002<\/p>\n<p>\u5b9a\u4e49\u5e94\u7528\u5c42\u534f\u8bae\u65f6\uff0c\u4e00\u822c\u9700\u8981\u6ee1\u8db3\u4e0b\u9762\u4e09\u79cd\u9700\u6c42\u4e4b\u4e00\uff1a<\/p>\n<p>&#8211; \u56fa\u5b9a\u534f\u8bae\u5305\u957f\u5ea6\uff08\u53ef\u62d3\u5c55\u6027\u4f4e\uff09<br \/>&#8211; \u6307\u5b9a\u534f\u8bae\u5305\u7ec8\u7ed3\u7b26\uff0c\u4f8b\u5982 redis \u7684 RECP \u534f\u8bae<br \/>&#8211; \u6307\u5b9a\u4e00\u4e2a Length \u5b57\u6bb5\uff0c\u8868\u660e\u534f\u8bae\u5305\u957f\u5ea6\uff0c\u4f8b\u5982 HTTP \u534f\u8bae<\/p>\n<p>\u6839\u636e\u8fd9\u4e09\u4e2a\u9700\u6c42\uff0c\u5728\u5904\u7406 TCP \u6d41\u65f6\u627e\u5230\u5e94\u7528\u5c42\u534f\u8bae\u5305\u7684\u5206\u754c\uff0c\u5c31\u80fd\u62c6\u89e3\u51fa\u4e00\u4e2a\u4e2a\u5355\u72ec\u7684\u5e94\u7528\u5c42\u5305\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071573\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Cbdy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7c98\u5305\u8b66\u5bdf\u4e0d\u8bf7\u81ea\u6765                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071574\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Meltdown <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u672c\u6765\u5c31\u662f\u8fd9\u6837\u554a\uff0c\u5982\u679c\u6709\u5f80\u6587\u4ef6\u91cc\u8bfb\u5199\u7ed3\u6784\u5316\u6570\u636e\u548c\u77e5\u9053 tcp \u8bfb\u5199\u65f6\u8bfb\u5230\u6216\u5199\u5165\u7684\u957f\u5ea6\u4e0d\u4e00\u5b9a\u662f\u6307\u5b9a\u7684\u957f\u5ea6\u5c31\u81ea\u7136\u800c\u7136\u8003\u8651\u5230\u8fd9\u4e2a\u95ee\u9898\u4e86\u3002\u8fd9\u4e2a\u7c98\u5305\u90fd\u5feb\u6210\u4e13\u4e1a\u540d\u8bcd\u4e86\uff0c\u6211\u770b brpc \u7684\u6587\u6863\u91cc\u90fd\u8fd9\u4e48\u8bf4\u4e86\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071575\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuanbg <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             TCP \u8bbe\u8ba1\u51fa\u6765\u5c31\u4e0d\u662f\u76f4\u63a5\u7ed9\u5e94\u7528\u7a0b\u5e8f\u7528\u7684\u3002\u5e94\u7528\u7a0b\u5e8f\u5e94\u8be5\u4f7f\u7528\u5e94\u7528\u5c42\u534f\u8bae\u6765\u4f7f\u7528 TCP\uff0c\u8b6c\u5982 http \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071576\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chenqh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             TCP \u662f\u6d41\uff0c\u4f46\u662f\u5e94\u8be5\u7b97\u662f\u8f66\u6d41\u5427\uff0c\u4e0d\u662f\u6c34\u6d41                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071577\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chenqh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Jaron0608 \u6211\u5230\u89c9\u5f97 HTTP \u4e3b\u8981\u662f\u4e00\u4e2a\u94fe\u63a5\u53ea\u53d1\u4e00\u4e2a\u8bf7\u6c42\uff0c\u5bfc\u81f4\u7c98\u5305\u60c5\u51b5\u6bd4\u8f83\u5c11                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071578\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : love <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u6ef4\u5988\u8fd9\u90fd 2021 \u5e74\u4e86\uff0c\u600e\u4e48\u8fd8\u5728\u8bf4\u8fd9\u4e48\u65e0\u804a\u7684\u95ee\u9898\uff0cTCP \u662f\u5b57\u8282\u6d41\u54ea\u6765\u7684\u7c98\u5305\u62c6\u5305\uff0c\u4f60\u4eec\u80fd\u4e0d\u80fd\u53d1\u4e2a\u4ee3\u7801\u7247\u6bb5\u8ba9\u6211\u89c1\u8bc6\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071579\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 1109599636 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Jaron0608 \u8fd9\u4e2a\u56de\u7b54\u5f88\u4e0d\u9519\uff0c\u5927\u90e8\u5206\u56de\u590d\u6beb\u65e0\u5e2e\u52a9\u751a\u81f3\u8425\u517b\u53ef\u8a00\uff0c\u5373\u4f7f\u662f v2 \u8ba8\u8bba\u8d77\u95ee\u9898\u813e\u6c14\u4e5f\u662f\u5927\uff0c\u7f51\u7edc\u73af\u5883\u4e0d\u4e50\u89c2\u554a\u3002\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071580\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : micean <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56e0\u4e3a\u6570\u636e\u5230\u7f13\u51b2\u533a\uff0c\u53d1\u4e0d\u53d1\u662f\u7f51\u5361\u9a71\u52a8\u51b3\u5b9a\u7684\uff0c\u53ef\u80fd\u9a6c\u4e0a\u53d1\uff0c\u4e5f\u53ef\u80fd\u7b49\u4e00\u4f1a\u53d1\uff0c\u7f13\u51b2\u533a\u6ee1\u4e86\u5c31\u5206\u51e0\u6b21\u53d1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071581\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lizytalk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7c98\u5305\u672c\u6765\u5c31\u662f\u4f2a\u95ee\u9898\u3002\u60f3\u7528\u4e00\u4e2a\u5305\u4e00\u4e2a\u5305\u7684\u6a21\u5f0f\u5c31\u81ea\u5df1\u641e\u4e00\u4e2a\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u6216\u8005\u7528\u73b0\u6210\u7684\u554a\u3002tcp \u672c\u6765\u5c31\u662f\u6d41\u4f20\u8f93\u7684\u534f\u8bae\uff0c\u975e\u8981\u8ba9\u4eba\u5bb6\u4f20\u8f93\u5305\uff0ctcp \u4e5f\u5f88\u65e0\u5948\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071582\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : micean <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6bd4\u65b9\u8bf4\uff0c\u7f13\u51b2\u533a\u5927\u5c0f\u662f 1024\uff0c\u4f60\u6bcf\u79d2\u53d1\u4e2a 10byte \u7684\u5e27\uff0c\u5bf9\u65b9\u54ea\u9700\u8981\u5904\u7406\u4ec0\u4e48\u6240\u8c13\u7c98\u5305\u62c6\u5305\u7684\u95ee\u9898\uff0c\u4f46\u662f\u4f60\u8981\u53d1\u4e2a 10kb \u7684\u5e27\uff0c\u90a3\u8fd9\u4e00\u5e27\u80af\u5b9a\u662f\u62c6\u5f00\u53d1\u9001\u7684\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071583\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : neoblackcap <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u539f\u7406\u5c31\u4e0d\u8bb2\u4e86\uff0c\u6211\u8bf4\u8bf4\u5386\u53f2\u5427<br \/>socket \u8fd9\u5957\u4e1c\u897f\u5462\uff0c\u5176\u5b9e\u672c\u8d28\u4e0a\u662f\u5386\u53f2\u7269\u7406\u8fc7\u7a0b\u7684\u6a21\u62df\u3002TCP \u5c31\u662f\u6a21\u62df\u7535\u8bdd\u800c\u51fa\u73b0\u7684\uff0cUDP \u5c31\u662f\u6a21\u62df\u7535\u62a5\u3002<br \/>\u6211\u4eec\u5f53\u7136\u53ef\u4ee5\u8bf4\u62cd\u4e86\u201c\u4e00\u4e2a\u7535\u62a5\u201d\u7ed9\u522b\u4eba\uff0c\u800c\u4e14\u8bf4\u660e\u4e00\u4ef6\u4e8b\u60c5\u7684\u65f6\u5019\uff0c\u6211\u4eec\u5f80\u5f80\u53ef\u80fd\u8981\u7528\u5230\u201c\u591a\u4e2a\u7535\u62a5\u201d\u3002<br \/>\u7136\u800c\u5f53\u7528\u7535\u8bdd\u7684\u65f6\u5019\u5219\u4e0d\u540c\uff0c\u6211\u4eec\u4e5f\u53ef\u4ee5\u8bf4\u6253\u4e86\u201c\u4e00\u4e2a\u7535\u8bdd\u201d\u7ed9\u522b\u4eba\uff0c\u7136\u800c\u5f80\u5f80\u8bf4\u660e\u4e00\u4ef6\u4e8b\u60c5\u7684\u65f6\u5019\uff0c\u6211\u4eec\u7528\u201c\u4e00\u4e2a\u7535\u8bdd\u201d\u5c31\u53ef\u4ee5\u641e\u5b9a\u4e86\u3002<br \/>\u4e3a\u5565\u6253\u7535\u8bdd\u7684\u65f6\u5019\u4e0d\u4f1a\u51fa\u73b0\u201c\u7c98\u5305\u201d\u800c socket \u7f16\u7a0b\u53c8\u4f1a\u51fa\u73b0\u201c\u7c98\u5305\u201d\u5462\uff1f\u5f53\u5927\u5bb6\u56de\u5fc6\u81ea\u5df1\u662f\u600e\u4e48\u6253\u7535\u8bdd\u7684\u65f6\u5019\uff0c\u5927\u6982\u5c31\u660e\u767d\u4e86\u4e3a\u5565\u4e0d\u201c\u7c98\u5305\u201d\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071584\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : VersionD <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @opengps hh\uff0c\u5f88\u7cbe\u9ad3\uff0c\u6bd4\u8d77\u7c98\u5305\u8b66\u5bdf\u7684\u89e3\u91ca\u597d\u591a\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071585\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : germain <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7528\u79c1\u6709\u534f\u8bae+\u7f16\u7801+\u7f13\u51b2                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071586\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aaronlam <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/www.aaronlam.xyz\/2019\/04\/04\/why-tcp-sticky-my-packet\/ \u53ef\u4ee5\u4e86\u89e3\u4e00\u4e0b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071587\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : b00tyhunt3r <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @carlclone \u8bb2\u4e24\u53e5\u5457                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071588\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : oisadfo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5c45\u7136\u6ca1\u6709\u4eba\u6765\u7ed9\u7c98\u5305\u4e0b\u4e2a\u5b9a\u4e49\uff0c\u90fd\u662f\u5404\u8bf4\u5404\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071589\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lewis89 \u8bdd\u8bf4\u4e5f\u6709 SCTP \u8fd9\u79cd\u4fdd\u5e8f\u53c8\u5206\u5305\u7684\uff0c\u4f46\u6ca1\u4ec0\u4e48\u4eba\u7528\u7684\u6837\u5b50<br \/>\u540e\u6765\u7684\u8981\u4e48\u5e72\u8106 WebSocket \u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071590\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @seanxx @1109599636 \u662f\u4ec0\u4e48\u8ba9\u4f60\u4eec\u6709\u4e86\u6280\u672f\u5de5\u4f5c\u8005\u548c\u7231\u597d\u8005\u4f1a\u53cb\u5584\u7684\u9519\u89c9\uff1f<br \/>\u4ece\u65b0\u95fb\u7ec4\u65f6\u4ee3\u5f00\u59cb\u5c31\u4f1a\u82b1\u5f0f\u5632\u8bbd\u4e86\u597d\u4e48\uff1a<br \/>https:\/\/github.com\/ryanhanwu\/How-To-Ask-Questions-The-Smart-Way\/blob\/master\/README-zh_CN.md<br \/>\uff08\u539f\u4f5c\u8005\u662f ESR\uff0c \u201c\u5f00\u6e90\u201d \u4e00\u8bcd\u7684\u521b\u9020\u8005\uff09                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071591\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : iszengmh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u4f60\u4eec\u53ea\u662f\u60f3\u8bf4\u7c98\u5305\u548c\u62c6\u5305                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071592\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : iszengmh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u4f60\u4eec\u53ea\u662f\u60f3\u8bf4 TCP                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071593\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yayoi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             websocket\uff0chttp \u548c tcp\uff0cstcp \u4e0d\u662f\u4e00\u5c42\u7684\u4e1c\u897f\u5427\uff0c\u6240\u8c13\u7c98\u5305\u662f\u56e0\u4e3a\u76f4\u63a5\u7528\u4e86 tcp \u5374\u4e0d\u5b9e\u73b0\u5e94\u7528\u5c42\u534f\u8bae\u9020\u6210\u7684\u95ee\u9898\uff0c\u76f4\u63a5\u539f\u56e0\u662f\u4e0d\u77e5\u9053 tcp \u7684\u5de5\u4f5c\u65b9\u5f0f\uff0c\u6839\u672c\u539f\u56e0\u662f\u4e0d\u4e86\u89e3\u901a\u4fe1\u7684\u4e03\u5c42\u6a21\u578b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071594\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : iszengmh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u4f60\u4eec\u53ea\u662f\u60f3\u8bf4 TCP \u6839\u672c\u6ca1\u6709\u62c6\u5305\u548c\u7c98\u5305\uff0c\u5b83\u4eec\u662f\u5e94\u7528\u5c42\u505a\u7684\u4e8b\u60c5\uff0c\u5e94\u7528\u5c42\u628a\u6570\u636e\u62c6\u6210\u4e00\u6bb5\u4e00\u6bb5\uff08\u62c6\u5305\uff09\uff0c\u5728\u4f20\u8f93\u5c42\u5229\u7528 TCP \u534f\u8bae\u4e00\u6bb5\u4e00\u6bb5\u53d1\u9001\uff0c\u63a5\u6536\u6570\u636e\u7684\u5e94\u7528\u5c42\u53c8\u628a\u4e00\u6bb5\u4e00\u6bb5\u6570\u636e\u7ec4\u5408\u8d77\u6765\u6210\u4e3a\u4e00\u4e2a\u5b8c\u6574\u6570\u636e\uff08\u7c98\u5305\uff09\uff0c\u6574\u4e2a\u8fc7\u7a0b\u5728\u5e94\u7528\u770b\u8d77\u6765\u5c31\u53ea\u662f\u53d1\u9001\u4e86\u4e00\u6b21\u8bf7\u6c42\u800c\u5df2\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071595\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mengzhuo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u89e3\u91ca\u4e86<\/p>\n<p>\u6211\u539f\u6765\u662f\u7c98\u5305\u8b66\u5bdf<\/p>\n<p>\u73b0\u5728\u662f\u9762\u8bd5\u522b\u4eba\u7684\u65f6\u5019\uff0c\u6545\u610f\u6316\u5751\uff0c\u8c01\u6389\u8fdb\u53bb\u5c31\u76f4\u63a5\u4e0d\u901a\u8fc7(\uffe3\u2207\uffe3)                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071596\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : littlecreek <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bf7\u6559&#8221;\u7c98\u5305\u4e0e\u62c6\u5305&#8221; \u8fd9\u4fe9\u5bf9\u5e94\u7684\u82f1\u6587\u540d\u8bcd\u662f\u4ec0\u4e48? \u6211\u53bb\u5b66\u4e60\u4e00\u4e0b.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071597\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ryd994 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u56e0\u4e3a\u8fd9\u5e2e\u4eba\u8fd8\u4e0d\u77e5\u9053 sctp\uff0c\u65e2\u63d0\u4f9b\u53ef\u9760\u6027\uff0c\u4e5f\u63d0\u4f9b\u5b57\u8282\u8fb9\u754c\u3002<br \/>\u5982\u679c\u6015\u4e2d\u95f4\u7684\u8bbe\u5907\u4e0d\u652f\u6301\u7684\u8bdd\uff0c\u8fd8\u6709\u57fa\u4e8e TCP \u6216 UDP \u7684\u7528\u6237\u6001 sctp \u5e93\u3002<\/p>\n<p>\u5982\u679c\u53ea\u662f\u4e3a\u4e86\u4f20\u8f93\u6570\u636e\uff0c\u8c01\u6ca1\u4e8b\u624b\u64b8 TCP \u554a\uff0cprotobuf \u4e0d\u9999\u5417\uff1f                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071598\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @no1xsyzy #46 \u5173\u952e\u662f 99%\u7684\u4eba IP \u4ee5\u4e0a\u7684\u4e1c\u897f \u5c31\u53ea\u542c\u8bf4\u8fc7 TCP UDP\uff0c\u800c\u4e14\u5927\u90e8\u5206\u8def\u7531\u5668\u4e5f\u53ea\u9488\u5bf9\u8fd9\u4e24\u4e2a\u505a\u4e86 NAT \u4f18\u5316\uff0c\u641e\u4e0d\u597d\u4f60\u7528\u5176\u5b83\u7684\uff08\u6211\u4e0d\u662f\u5f88\u4e86\u89e3 STCP \uff09,\u5c31\u4e0d\u517c\u5bb9\u4e86&#8230; \u597d\u591a\u8def\u7531\u5668\u8fde ICMP \u90fd\u662f\u9ed8\u8ba4\u9632\u706b\u5899\u62e6\u4e86\uff0c\u800c\u4e14\u4ece\u79c1\u6709\u7f51\u5230\u5e7f\u57df\u7f51\u4e0a \u5c42\u5c42 NAT\uff0craw IP \u534f\u8bae\u6839\u672c\u884c\u4e0d\u901a..                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071599\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : crclz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             TCP \u662f\u9762\u5411\u5b57\u8282\u6d41\u7684\u534f\u8bae\u3002TCP \u53ea\u8d1f\u8d23\u4f20\u8f93\u5b57\u8282\u5e8f\u5217\u3002\u81f3\u4e8e\u4e3a\u4ec0\u4e48 API \uff08\u63a5\u6536\u548c\u53d1\u9001\uff09\u662f\u4ee5 byte[]\u4e3a\u5355\u4f4d\uff0c\u53ea\u662f\u56e0\u4e3a\u6279\u91cf\u5904\u7406\u6570\u636e\u7684\u6548\u7387\u539f\u56e0\u3002TCP \u4ee3\u7801\u91cc\u9762\u5e76\u4e0d\u5bf9\u4f60\u53d1\u9001\u7684 byte[]\u505a\u51fa\u5206\u754c\uff0c\u5047\u8bbe\u4f60\u8981\u4f20\u8f93\u67d0 buffer[0:200]\uff0c\u90a3\u4e48\u2460\u4f20\u8f93 buffer[0:50]\u3001buffer[50:200]\u548c\u2461buffer[0:100]\u3001buffer[100:200]\uff0cTCP \u8ba4\u4e3a\u2460\u2461\u5e76\u6ca1\u6709\u533a\u522b\u3002<\/p>\n<p>\u8fd9\u4e2a\u5b57\u8282\u6d41\u53ef\u4ee5\u7406\u89e3\u4e3a C#\u4e2d\u7684 Stream \u6216\u8005 IEnumerable&lt;byte&gt;\u8fd9\u4e24\u4e2a\u7f16\u7a0b\u63a5\u53e3\u3002<\/p>\n<p>TCP \u7684\u7c98\u5305\u662f\u56e0\u4e3a\uff0c\u672c\u8eab\u5c31\u6ca1\u6709\u5305\u7684\u6982\u5ff5\u3002\u4f60\u53d6\u5230\u7684\u5b57\u8282\u6570\u7ec4\u6709\u6982\u7387\u548c\u4f20\u8f93\u7684\u5b57\u8282\u6570\u7ec4\u7684\u201c\u7a97\u53e3\u201d\u76f8\u540c\uff0c\u7ed9\u4e86\u4f60\u201c\u5305\u201d\u7684\u9519\u89c9\uff0c\u53ea\u662f\u56e0\u4e3a\u8fd0\u6c14\u597d\u7f62\u4e86\uff08\u4ece IP \u5c42\u7684\u7f13\u51b2\u53d6\u8d70\u6570\u636e\u53ca\u65f6\uff0c\u5e76\u4e14\u4e2d\u95f4\u7684\u94fe\u8def\u7545\u901a\uff09\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071600\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Orenoid <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u672c\u8d28\u4e0a\u5c31\u662f\u5728\u8ba8\u8bba\u5982\u4f55\u5728 TCP \u6d41\u5f0f\u6570\u636e\u91cc\u62c6\u5206\u51fa\u5e94\u7528\u5c42\u7684\u6570\u636e\u5305\uff0c\u8bf4\u5230\u5e95\u5c31\u662f\u4e2a\u53eb\u6cd5\u95ee\u9898\uff0c\u201c\u7c98\u5305\u201d\u8fd8\u662f\u201c\u62c6\u5305\u201d\uff0c\u4f46\u9ebb\u70e6\u8bf7\u7528\u540e\u8005\uff0c\u9519\u7684\u5c31\u662f\u9519\u7684\u3002<br \/>\u4e5f\u8bb8\u4f60\u662f\u80fd\u7406\u89e3\u95ee\u9898\u7684\u672c\u8d28\uff0c\u4f46\u4f60\u80fd\u4fdd\u8bc1\u4f60\u5728\u4f20\u64ad\u201c\u7c98\u5305\u201d\u8fd9\u4e2a\u6982\u5ff5\u7684\u65f6\u5019\uff0c\u4e5f\u4fdd\u8bc1\u542c\u4f17\u4e0d\u4f1a\u9519\u8bef\u7406\u89e3\u5417\uff1f\u8fd9\u4e2a\u8bcd\u4f20\u5f97\u8d8a\u5e7f\uff0c\u5c31\u8d8a\u6709\u53ef\u80fd\u5bfc\u81f4\u5f88\u591a\u65b0\u624b\u4ee5\u4e3a TCP \u4f20\u8f93\u8fc7\u7a0b\u5c31\u662f\u6309\u7167\u4e00\u4e2a\u4e00\u4e2a\u5305\u53bb\u53d1\u9001\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071601\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nl101531 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4ece\u4e00\u6b21\u534f\u8bae\u8bf7\u6c42\u6765\u770b\uff0cTCP \u4f1a\u5c06\u5e94\u7528\u5c42\u6570\u636e\u5206\u6bb5\u540e\uff0c\u8f6c\u4ea4\u7ed9 ip \u6210\uff0cip \u6210\u518d\u6b21\u5206\u7247\uff0c\u5f53\u7f51\u5361\u6536\u5230\u6570\u636e\u540e\uff0cip \u6210\u4f1a\u5408\u5e76\u6570\u636e\uff0c\u7136\u540e\u8f6c\u4ea4\u7ed9 TCP \u6210\uff0cTCP \u662f\u76f4\u63a5\u5c06\u8fd9\u4e2a\u6bb5\u7ed9\u5230\u5e94\u7528\u5c42\uff0c\u95ee\u9898\u662f\u8fd9\u4e2a\u6bb5\u7531\u4e8e\u8fde\u63a5\u590d\u7528\u53ef\u80fd\u4f1a\u5305\u542b\u591a\u4e2a\u4e1a\u52a1\u8bf7\u6c42\u542b\u4e49\u3002<\/p>\n<p>\u4e2a\u4eba\u8ba4\u4e3a\uff0c\u7c98\u5305\u8bf4\u6cd5\u5f88\u5f62\u8c61\uff0c\u6ca1\u5fc5\u8981\u63ea\u7740\u6d41\u5f0f\u534f\u8bae\u8fd9\u4e00\u70b9\u4e0d\u653e\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071602\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : love <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @nl101531 \u4f60\u8bf4\u7684\u662f\u5565\u4f60\u7406\u89e3\u5417\uff0c\u4ec0\u4e48\u53eb\u7531\u4e8e\u8fde\u63a5\u590d\u7528\u53ef\u80fd\u4f1a\u5305\u542b\u591a\u4e2a\u4e1a\u52a1\u8bf7\u6c42\u542b\u4e49\uff1f\u5b57\u8282\u6d41\u7531\u4e8e\u6548\u7387\u56e0\u7d20\u624d\u5728\u63a5\u53e3\u5c42\u9762\u5141\u8bb8\u4e00\u6b21\u8bfb\u5199\u591a\u4e2a\u5b57\u8282\u672c\u8d28\u4e0a\u8fd8\u662f\u4e00\u4e2a\u5b57\u8282\u4e00\u4e2a\u5b57\u8282\u53d1\u9001\u8bfb\u53d6\u6570\u636e\u7684\u5b57\u8282\u6d41\uff0c\u4e00\u4e2a\u5b57\u8282\u6d41\u6709\u4ec0\u4e48\u7c98\u5305\uff1f\u8fd9\u8bcd\u8fd8\u4e0d\u662f\u8bef\u89e3 TCP \u800c\u6765\u7684\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071603\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Mutoo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @littlecreek TCP message framing                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071604\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jj783850915 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u65e5\u7ecf\u8d34 \u9694\u4e00\u6bb5\u65f6\u95f4\u5c31\u8981\u6765\u4e00\u6b21                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071605\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tairan2006 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7b97\u4e86\uff0c\u8fd8\u662f\u62c9\u9ed1\u4e3b\u5427\uff0c\u7ad9\u5185\u641c\u7d22\u90fd\u4e0d\u4f1a\u7528\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071606\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lewis89 \u770b\u4e86\u4e00\u4e0b\uff0c\u4f3c\u4e4e WebRTC \u662f\u6216\u8005\u53ef\u9009\u662f SCTP \u7684\u2026\u2026<br \/>\u8fd9\u5177\u4f53\u7684\u6211\u4e5f\u4e0d\u60f3\u57cb\u8fdb RFC \u8bfb\u4e86\uff0c\u53ea\u770b\u5230\u539f\u672c\u7684\u8fd0\u7528\u9762\u4e5f\u5c31\u662f\u7535\u4fe1\u65b9\u9762\u7684\u3002<br \/>\u4f60\u4e0a\u9762\u90a3\u4f4d\u4e5f\u63d0\u5230\u4e86\u7528\u6237\u6001 SCTP \u5e93\uff0c\u4f46\u76ee\u524d WebSocket \u6709\u8bb8\u591a\u5f00\u7bb1\u5373\u7528\u7684\u597d\u5904\uff0c\u6bd4\u5982\u73b0\u6210\u7684 SSL\/TLS \u4f53\u7cfb\u3001\u4ee5\u53ca\u53cd\u5411\u4ee3\u7406\u3002<\/p>\n<p>@Orenoid @Mutoo \u5b9e\u9645\u4e0a\u8fd9\u540d\u5b57\u4e5f\u4e0d\u53eb\u62c6\u5305\u53eb\u5206\u5e27\u2026\u2026<br \/>\u4e0a\u9762\u67d0\u7bc7\u6587\u7ae0\u770b\u4e86\u4e0b\uff0cIP \u53eb\u5305\uff0cTCP \u53eb\u6bb5\uff0cUDP \u53eb\u62a5\uff0cSCTP \u548c WebSocket \u53eb\u6d88\u606f\uff0c\u6bd4\u5305\u5305\u5305\u5305\u6e05\u6670\u591a\u4e86\u3002<br \/>\u5b9e\u9645\u4e0a\u62c6\u5305\u5e76\u5305\u5e94\u5f53\u662f\u5b58\u5728\u7684\uff0c\u6bd4\u5982 TCP \u4e00\u4e2a\u6bb5\u7684\u6570\u636e\u8d85\u8fc7 IP \u5305\u5927\u5c0f\u4e0a\u9650\u65f6 src \u53d1\u751f\u62c6\u5305\uff0c\u4e4b\u540e dst \u518d\u5e76\u5305\u63d0\u4ea4\u7ed9 TCP \u5c42\u3002<br \/>\u81f3\u4e8e\u53cd\u8fc7\u6765\u4e24\u4e2a\u6bb5\u5206\u522b\u653e\u4e24\u4e2a\u5305\u63d0\u4ea4\u51fa\u53bb\u4e0d\u4f1a\u88ab IP \u5c42\u7c98\u5728\u4e00\u8d77\uff0c\u9664\u975e\u662f TCP \u4e2d\u7ee7\uff0c\u89e3\u5305\u91cd\u6784\u6d41\u518d\u91cd\u65b0\u5206\u6bb5\u53d1\u5305\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071607\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l00t <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Jirajine #21 \u8c01\u8ddf\u4f60\u8bf4\u8bfb\u5199\u6587\u4ef6\u6253 log \u5c31\u4e0d\u4f1a\u201c\u7c98\u5305\u201d\uff1f \u5305\u662f\u4e0a\u5c42\u7684\u5305\uff0c\u600e\u6837\u7b97\u4e00\u4e2a\u5305\uff0c\u662f\u4e0a\u5c42\u754c\u5b9a\u7684\u3002\u4f60\u60f3\u4e00\u53e5\u4e00\u53e5\u5730\u5904\u7406\uff0c\u7ed3\u679c\u4e00\u6b21\u8bfb\u5230\u4e86\u4e24\u53e5\uff0c\u8fd9\u5c31\u662f\u201c\u7c98\u5305\u201d\uff0c\u4f60\u5f97\u81ea\u5df1\u518d\u62c6\u5f00\u6765\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071608\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @l00t \u53ea\u8981\u4f60\u628a\u5b83\u770b\u505a\u6d41\uff0c\u5c31\u50cf\u6c34\u9f99\u5934\u4e0b\u63a5\u6c34\uff0c\u63a7\u5236\u4e00\u6b21\u63a5\u591a\u5c11\u662f\u81ea\u7136\u800c\u7136\u7684\u3002<br \/>\u4f46\u4f60\u8981\u4e0d\u628a\u5b83\u770b\u4f5c\u6d41\uff0c\u6c34\u662f\u88c5\u5728\u4e00\u4e2a\u4e2a\u5927\u5c0f\u4e0d\u4e00\u7684\u676f\u5b50\u91cc\u8fc7\u6765\u7684\uff0c\u4f60\u624d\u9700\u8981\u989d\u5916\u8003\u8651\u201c\u62c6\u5305\u201d\u3001\u201c\u5e76\u5305\u201d\uff0c\u628a\u5927\u676f\u62c6\u6210\u5c0f\u676f\u5c0f\u676f\u5408\u6210\u5927\u676f\u3002<br \/>\u800c\u8fd9\u79cd\u8ba4\u77e5\u662f\u9519\u8bef\u7684\uff0c\u6570\u636e\u5728\u4e00\u4e2a\u4e2a\u5305\u91cc\u4f20\u8f93\u5c5e\u4e8e TCP \u7684\u5185\u90e8\u7ec6\u8282\uff0cTCP \u5bf9\u4e0a\u5c42\u7684\u8868\u73b0\u5c31\u662f\u65e0\u5206\u6bb5\u7684\u6d41\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071609\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : nightwitch <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u4e9b\u4e8c\u6d41\u7684\u7a0b\u5e8f\u5458\u56e0\u4e3a\u5bf9\u7f51\u7edc\u534f\u8bae\u638c\u63e1\u7684\u4e00\u56e2\u6d46\u7cca, \u5728\u7f16\u7a0b\u5b9e\u8df5\u4e2d\u4e0d\u80fd\u7406\u89e3\u660e\u660e\u6211 send \u4e86 5 \u6b21\u4e3a\u4ec0\u4e48\u6211 recv \u4e00\u6b21\u5c31\u6536\u5230\u4e86\u6240\u6709\u7684\u6570\u636e,\u8fdb\u800c\u5c06\u8fd9\u6837\u7684\u73b0\u8c61\u5f52\u548e\u4e8e TCP \u7684\u5b9e\u73b0,\u4ece\u800c\u603b\u7ed3\u4e3a&#8221;\u7c98\u5305&#8221;,\u5e76\u5728\u4e92\u8054\u7f51\u4e0a\u4f20\u64ad\u4e00\u4e9b\u8ba9\u4eba\u557c\u7b11\u7686\u975e\u7684\u6982\u5ff5.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071610\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Y29tL2gwd2Fy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7f51\u7ebf\u4e0a\u5237\u5c42\u9ec4\u6cb9\u5c31\u4e0d\u4f1a\u6cbe\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071611\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : l00t <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Jirajine #65 \u5f53\u4f60\u8bf4\u5230 \u201c\u6570\u636e\u5728\u4e00\u4e2a\u4e2a\u5305\u91cc\u4f20\u8f93\u5c5e\u4e8e TCP \u7684\u5185\u90e8\u7ec6\u8282\u201d\uff0c \u5c31\u8bf4\u660e\u4f60\u5bf9\u201c\u7c98\u5305\u201d\u8fd9\u4e2a\u540d\u8bcd\u7684\u8ba4\u77e5\u662f\u9519\u8bef\u7684\u3002\u4e24\u4e2a\u5730\u65b9\u7684\u201c\u5305\u201d\u90fd\u4e0d\u662f\u540c\u4e00\u4e2a\u6982\u5ff5\u3002\u5e94\u7528\u5c42\u7684\u5305\uff0cTCP \u6839\u672c\u5c31\u4e0d\u8ba4\u8bc6\uff0c\u6709\u4e2a\u6bdb\u7684\u7ec6\u8282\u3002<\/p>\n<p>\u6c34\u6309\u4e00\u676f\u4e00\u676f\u5730\u6765\uff0c\u662f\u4f60\u7684\u9700\u6c42\uff0c\u4e0d\u662f\u8bf4\u4f60\u628a\u6c34\u770b\u6210\u6d41\u5c31\u80fd\u7ed5\u8fc7\u53bb\u4e86\u3002\u4f60\u770b\u6210\u6d41\u4f60\u4e5f\u8981\u628a\u6c34\u88c5\u5230\u4e00\u4e2a\u4e2a\u676f\u5b50\u91cc\u3002\u800c\u4e14\u5b9e\u9645\u7f16\u7a0b\u4e2d\uff0c\u4f60\u4e5f\u4e0d\u662f\u60f3\u63a7\u5236\u4e00\u6b21\u53d6\u591a\u5c11\u5c31\u53d6\u591a\u5c11\uff0c\u5b9e\u9645\u4e2d\u56e0\u4e3a API \u7684\u5173\u7cfb\u6c34\u662f\u4e00\u6876\u4e00\u6876\u6765\u7684\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071612\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Orenoid <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @no1xsyzy #63 <br \/>\u6211\u4e5f\u4e0d\u786e\u5b9a\u62c6\u5305\u6216\u8005\u5206\u5e27\u662f\u4e0d\u662f\u4e00\u4e2a\u6807\u51c6\u7684\u53eb\u6cd5\uff0c\u56e0\u4e3a\u8fd9\u91cc\u53ea\u662f\u5728\u62bd\u8c61\u5730\u8ba8\u8bba\u5e94\u7528\u5c42\u5bf9\u6d41\u5f0f\u6570\u636e\u7684\u62c6\u5206\uff0c\u6ca1\u6709\u5177\u4f53\u7684\u5e94\u7528\u5c42\u534f\u8bae\u53ef\u4ee5\u5bf9\u5e94\uff0c\u6bd4\u5982 HTTP \u62a5\u6587\u3001WebSocket \u6d88\u606f\u5c31\u6709\u4e00\u4e2a\u6807\u51c6\u7684\u547d\u540d\u3002\u4f46\u8131\u79bb\u4e86\u5177\u4f53\u534f\u8bae\u7684\u8bdd\uff0c\u6211\u4e4b\u524d\u5b66\u4e60\u7684\u65f6\u5019\u5e76\u6ca1\u6709\u770b\u5230\u5bf9\u8fd9\u4e2a\u884c\u4e3a\u6709\u4e00\u4e2a\u6807\u51c6\u7684\u7edf\u79f0\u3002<\/p>\n<p>\u4e0d\u8fc7\u6211\u89c9\u5f97\u8fd9\u4e2a\u4e0d\u662f\u91cd\u70b9\uff0c\u53ea\u8981\u505a\u8fc7\u8fd9\u4e00\u5757\u76f8\u5173\u7684\u5f00\u53d1\uff0c\u5c31\u90fd\u80fd\u7406\u89e3\u5927\u5bb6\u8bf4\u7684\u5176\u5b9e\u662f\u4e00\u4e2a\u95ee\u9898\u3002\u6211\u60f3\u5f3a\u8c03\u7684\u70b9\u8fd8\u662f\u5728\u4e8e\uff0c\u4e0d\u8be5\u4f7f\u7528\u201c\u7c98\u5305\u201d\u8fd9\u4e2a\u53eb\u6cd5\uff0c\u662f\u56e0\u4e3a\u5f88\u5bb9\u6613\u8bef\u5bfc\u65b0\u624b\u3002\u6bd4\u5982\u4e0a\u9762\u4e00\u4f4d\u8001\u54e5\u63d0\u5230\u7684\uff0c\u201c\u5728\u7f16\u7a0b\u5b9e\u8df5\u4e2d\u4e0d\u80fd\u7406\u89e3\u660e\u660e\u6211 send \u4e86 5 \u6b21\u4e3a\u4ec0\u4e48\u6211 recv \u4e00\u6b21\u5c31\u6536\u5230\u4e86\u6240\u6709\u7684\u6570\u636e\u201d\uff0c\u65b0\u624b\u672c\u6765\u5c31\u7406\u89e3\u4e0d\u900f\u5f7b\uff0c\u7136\u540e\u7f51\u4e0a\u4e00\u641c\uff0c\u518d\u770b\u5230\u4e00\u4e9b\u4e0d\u61c2\u88c5\u61c2\u7684\u201c\u7c98\u5305\u201d\u6587\u7ae0\uff0c\u5c31\u88ab\u5f7b\u5e95\u5e26\u6b6a\u4e86\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071613\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @l00t \u4f60\u4eec\u6240\u8c13\u7684\u201c\u7c98\u5305\u201d\uff0c\u4e0d\u5c31\u662f\u53d1\u4e86\u591a\u4e2a\u5e94\u7528\u5c42\u7684\u5305\u88ab\u201c\u7c98\u201d\u5230\u4e00\u4e2a tcp \u5305\u91cc\uff0c\u8fd9\u5f53\u7136\u9519\u8bef\u7684\u7406\u89e3\u4e86 TCP \u7684\u5b9e\u73b0\u7ec6\u8282\u3002<br \/>\u4f60\u628a tcp \u770b\u6210\u6c34\u6d41\uff0c\u5f53\u4f60\u9700\u8981\u4e00\u676f\u4e00\u676f\u63a5\u6c34\u7684\u65f6\u5019\u81ea\u7136\u5c31\u4f1a\u63a7\u5236\u4e00\u6b21\u63a5\u591a\u5c11\u3002\u5b9e\u9645\u7f16\u7a0b\u4e2d\u6d41\u5f0f API \u5f53\u7136\u662f\u60f3\u4e00\u6b21\u53d6\u591a\u5c11\u5c31\u53d6\u591a\u5c11\uff0c\u5982\u679c\u6570\u636e\u4e0d\u591f\u5c31\u4f1a\u963b\u585e\u76f4\u5230\u8db3\u591f\uff0c\u5982\u679c\u591a\u4f59\u5219\u4f1a\u7f13\u5b58\u4e0b\u6765\u4f9b\u4e0b\u6b21\u8c03\u7528\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071614\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wudaye <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u73a9\u610f\u505a\u8fc7\u7684\u4eba\u5c31\u4f1a\u89c9\u5f97\u5f88\u7b80\u5355\u7684\u4e8b\u60c5\uff0c\u6ca1\u505a\u8fc7\u7684\u67d0\u4e9b\u4eba\u5c31\u4f1a\u4ee5\u4e3a\u662f\u5f88\u7384\u7684\u4e1c\u897f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071615\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : momocraft <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u500b\u4e0d\u932f\u7684\u6c11\u79d1\u904e\u6ffe\u5668                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071616\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : k8ser <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u82f1\u8bed\u91cc\u62c6\u5305\u662f unpack\uff0c\u90a3\u7c98\u5305\u4f60\u600e\u4e48\u7ffb\u8bd1\uff1f\uff1f\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071617\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ihuzhou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u4eec\u53e3\u4e2d\u7684\u5305\u662f\u4e0d\u662f\u540c\u4e00\u4e2a\u90fd\u6ca1\u5b9a\u597d\uff0c\u8fd8\u4e89\u4e2a\u5565\u554a&#8230;                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071618\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ihuzhou <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u540c\u7406\u201c\u62c6\u5305\u201d\uff0c\u201c\u7c98\u5305\u201d \u90fd\u6ca1\u5b9a\u4e49\u597d\uff0c\u8fd9\u4e48\u8bf4\u6ca1\u5565\u610f\u601d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071619\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tqz <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @l00t \u6b63\u89e3\uff0c\u5148\u8bf4 TCP \u662f\u6d41\uff0c\u4e0d\u5b58\u5728\u5305\uff0c\u7136\u540e\u5206\u6790\u5e94\u7528\u5c42\u4e0a\u9762\u5173\u4e8e\u5305\u7684\u95ee\u9898\u624d\u662f\u6b63\u5e38\u4eba\u7684\u505a\u6cd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071620\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eastphoton <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1.\u6d41\u4f20\u8f93\u662f TCP \u7684\u8bbe\u8ba1\u76ee\u7684\uff0c\u662f feature\uff0c\u4e0d\u662f\u7f3a\u70b9\u3002<\/p>\n<p>2.\u9700\u8981\u5b9e\u73b0\u628a\u4f20\u8f93\u5c42\u7684 TCP \u6570\u636e\u6d41\u62c6\u6210\u5e94\u7528\u5c42\u7684\u5305\uff0c\u4e5f\u662f\u5ba2\u89c2\u4e8b\u5b9e\u3002<br \/>\uff08\u65e0\u8bba\u4f60\u662f\u5426\u63a5\u53d7\u53d1\u660e\u7c98\u5305\u4e0e\u62c6\u5305\u8fd9\u4e00\u5bf9\u540d\u8bcd\uff0c\u53ea\u8981\u4f20\u8f93\u5c42\u7528\u4e86 TCP\uff0c\u5e94\u7528\u5c42\u53c8\u60f3\u7528\u5305\uff0c\u5c31\u5f97\u8fd9\u4e48\u5e72\u6ca1\u9519\u5427\uff09<\/p>\n<p>\u4ee5\u4e0a\u4e24\u70b9\uff0c\u8fd9\u5e94\u8be5\u662f\u6ca1\u6709\u4ec0\u4e48\u53ef\u4e89\u8bae\u7684\u3002<\/p>\n<p>1 \u672c\u6765\u5c31\u662f\u8bbe\u8ba1\u76ee\u7684 2 \u662f\u4e00\u4e2a\u7c7b\u4f3c\u5c01\u88c5\u7684\u4e8b\uff0c\u662f\u5206\u5c42\u6a21\u578b\u81ea\u7136\u800c\u7136\u7684\u4e8b\u3002<\/p>\n<p>\u641e\u4e0d\u6e05\u695a\u7684\u8bdd\uff0c\u5efa\u8bae\u91cd\u65b0\u7cfb\u7edf\u5b66\u4e60 \u8ba1\u7b97\u673a\u7f51\u7edc \u8bfe\u7a0b\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071621\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Orenoid agreed<\/p>\n<p>@k8ser \u8fd9\u91cc\u53c8\u6709\u4e00\u4e2a\u8bcd\u4e49\u95ee\u9898\uff0c\u62c6\u5305\u5230\u5e95\u662f 1. \u7ed9\u5b9a\u4e00\u4e2a\u5305\uff0c\u89e3\u6790\u5305\u5e76\u63d0\u53d6\u5305\u4f53\uff1b\u8fd8\u662f 2. \u7ed9\u5b9a\u4e00\u4e2a\u5305\uff0c\u5206\u62c6\u6210 N \u4e2a\u5305\uff1b\u8fd8\u662f 3. \u7ed9\u5b9a\u6d41\uff0c\u5206\u62c6\u6210\u82e5\u5e72\u5305\uff1f 1 \u662f unpack \u30022 \u662f split packet \uff1f repack \uff1f 3 \u624d\u662f\u4e3b\u9898\u63d0\u51fa\u7684\u95ee\u9898\uff0c\u6ca1\u6709\u660e\u786e\u540d\u79f0\u4f46 framing \u662f\u4e00\u4e2a\u9009\u9879<\/p>\n<p>@eastphoton \uff08\u5176\u5b9e TCP \u6570\u636e\u6d41\u4e0d\u4e00\u5b9a\u8981\u89e3\u6790\u6210\u5305\uff0c\u5982\u679c HTTP\/1.0 \u90a3\u6837\u4e0d\u5141\u8bb8 keep alive \u5c31\u6ca1\u8fd9\u4e2a\u95ee\u9898\uff0c\u5176\u6b21\u8fd8\u6709\u50cf telnet \u90a3\u6837\u4e0d\u8fdb\u884c\u91cd\u65b0\u5c01\u88c5\u5728\u4e0a\u5c42\u4ecd\u7136\u662f\u6d41\u7684\u8bdd\u4e5f\u4e0d\u9700\u8981\uff09                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071622\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzhy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u62bd\u5200\u65ad\u6c34\u6c34\u66f4\u6d41^^                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071623\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : eastphoton <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @no1xsyzy \u5c31\u77e5\u9053\u8981\u6709\u8fd9\u4e48\u56de\u7684\uff0c\u6211\u5df2\u7ecf\u6807\u4e86\u201c\u5e94\u7528\u5c42\u53c8\u60f3\u7528\u5305\u201d\u3002\u3002<br \/>\u6ca1\u6709\u8fd9\u4e2a\u524d\u63d0\u7684\u8bdd\uff0c\u5e94\u7528\u5c42\u5f53\u7136\u968f\u4f60\u8bf4\u4e86\u7b97\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071624\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : exiledkingcc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @micean \u4f60\u8fd9\u662f\u5178\u578b\u7684\u9519\u8bef\u8ba4\u8bc6\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071625\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuminghao233 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u5012\u662f\u8ba4\u4e3a TCP \u6d41\u7684 feature \u662f\u4e0d\u5fc5\u8981\u7684<br \/>\u5927\u591a\u6570 tcp \u5e94\u7528\u90fd\u5728\u5e94\u7528\u5c42\u505a tlv<br \/>\u534f\u8bae\u6808\u5b8c\u5168\u53ef\u4ee5\u7981\u6b62\u6bb5\u5206\u5272\u4e0e\u5408\u5e76<br \/>\u5bf9\u786e\u8ba4\u673a\u5236\u8fdb\u884c\u4fee\u6539<br \/>\u8ba9 TCP \u53d8\u6210\u662f Datagram<br \/>\u8fd9\u6837\u7684\u8bdd\u5e94\u7528\u5c42\u5c31\u4e0d\u7528\u5173\u5fc3\u6240\u8c13\u7684\u7c98\u5305\u95ee\u9898\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071626\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @eastphoton \u8865\u5145\u5566\u8865\u5145<br \/>\u771f\u8981\u8bf4 \u201c\u6d41\u62c6\u6210\u5305\u201d \u8fd9\u4e2a\u7ec4\u5408\u633a\u8be1\u5f02\u7684\uff0c\u4f46\u4f3c\u4e4e\u627e\u4e0d\u5230\u597d\u8bcd\u6765\u533a\u5206 <br \/>parse: bytes-&gt;struct<br \/>split: bytes-&gt;bytes[]<br \/>framing: stream[byte]-&gt;stream[bytes]<br \/>\u4e09\u79cd\u60c5\u51b5\uff08\u5b9e\u9645\u4e0a\u7b2c\u4e09\u4e2a\u8bcd\u82f1\u6587\u4e5f\u633a\u8be1\u5f02\u7684\uff0c\u4e0d\u77e5\u9053\u6709\u65e0\u66f4\u597d\u8bf4\u6cd5\uff09<br \/>\u7ed3\u679c\u4e0a\u6765\u8bf4\uff0c\u8fd9\u8fb9\u7b80\u76f4\u662f\u4e00\u5806\u4e0d\u591f\u4e25\u8c28\u7684\u52a8\u8bcd\u548c\u540d\u8bcd\u7684\u5927\u6742\u70e9\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071627\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : muzuiget <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6708\u7ecf\u95ee\u9898\uff0c\u5df2\u7ecf\u56de\u7b54\u65e0\u6570\u6b21\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071628\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @liuminghao233 \u8fd9\u70b9\u4e0a\u6765\u8bf4\uff0c\u4e00\u6765\u6709 SCTP<br \/>\u4e8c\u6765\uff0c\u5176\u5b9e TCP \u548c UDP \u5206\u522b\u662f\u4e24\u79cd tradeoff \u3002\u8fd9\u662f feature\uff0c\u4f46\u662f\u662f tradeoff feature\uff0c\u4e0d\u662f\u56e0\u4e3a\u505a\u6210\u8fd9\u6837\u597d\uff0c\u800c\u662f\u56e0\u4e3a\u505a\u6210\u8fd9\u6837\u80fd\u8ba9\u5176\u4ed6\u5730\u65b9\u66f4\u597d\u3002<br \/>\u5141\u8bb8\u6bb5\u5206\u5272\u548c\u5408\u5e76\u8fd8\u6709\u4e00\u4e2a\u6548\u679c\uff0c\u6bd4\u5982\u4f60\u6bcf\u4e2a\u62a5\u6587\u6bd4 IP \u5305\u5927\u5c0f\u8fd8\u5927\u4e00\u4e2a\u5b57\u8282\uff0c\u67d0\u4e00\u79d2\u53d1 N \u4e2a\u62a5\u6587\uff08\u6bd4\u5982 20&lt;N&lt;30 \uff09\uff0c\u5982\u679c\u4f60\u4e0d\u5141\u8bb8\u6bb5\u5206\u5272\u4e0e\u5408\u5e76\uff0c\u5c06\u5bfc\u81f4\u4f60\u53d1\u51fa 2N \u4e2a IP \u5305\uff0c\u5176\u4e2d\u4e00\u534a\u53ea\u7528\u4e8e\u53d1\u4e00\u4e2a\u5b57\u8282\u3002\u5141\u8bb8\u5206\u5272\u5408\u5e76\u5c31\u53ea\u7528\u53d1 N+1 \u4e2a IP \u5305\u3002\u73b0\u5728\u4e0d\u600e\u4e48\u5728\u4e4e\uff0c\u5f53\u65f6\u53ef\u80fd\u4f1a\u5f88\u5403\u7d27\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071629\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liuminghao233 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @no1xsyzy <br \/>\u6211\u8fd8\u6ca1\u7528\u8fc7 sctp \u4e0d\u77e5\u9053\u80fd\u4e0d\u80fd\u8fc7 nat<br \/>\u9664\u4e86 udp tcp \u5176\u4ed6\u7684\u4e0d\u597d\u8bf4<\/p>\n<p>\u5c0f\u5305\u95ee\u9898\u6211\u60f3\u77e5\u9053\u4f60\u8bf4\u7684\u60c5\u51b5\u6709\u5b9e\u9645\u5e94\u7528\u5417<br \/>\u6211\u89c9\u5f97\u5bf9\u4e8e\u9700\u8981 tlv \u7f16\u7801\u7684\u5e94\u7528\u6765\u8bb2<br \/>\u7528\u6d41\u8bed\u4e49\u597d\u50cf\u5e76\u6ca1\u6709\u5e26\u6765\u6536\u76ca                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071630\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @liuminghao233 \u5f62\u6001\u4e0a\u4e0e TCP \u4e00\u81f4\uff0c\u652f\u6301\u5e94\u5f53\u662f\u53ef\u4ee5\u7684\uff0c\u4e5f\u6709\u5728 TCP \/ UDP \u4e0a\u518d\u505a\u4e00\u5c42\u7684\u2026\u2026<\/p>\n<p>\u5305\u5927\u5c0f\u53d8\u6362\u95ee\u9898\u5176\u5b9e\u4f1a\u53d1\u751f\u5728 MTU \u6539\u53d8\u3001\u4ee5\u53ca\u6570\u636e\u901a\u8fc7\u96a7\u9053\u5bfc\u81f4\u5185\u5916\u5305\u9650\u4e0d\u540c\u7684\u60c5\u51b5<br \/>\u524d\u63d0\u6761\u4ef6\u662f TLV \u7684\u8bdd\u786e\u5b9e\u6d41\u6ca1\u4ec0\u4e48\u597d\u5904\uff0c\u6d41\u662f\u4e3a\u4e86\u907f\u514d\u8fd9\u4e00\u5c42\u4f5c\u592a\u591a\u5f3a\u5236\u3002<br \/>\u7b97\u662f\u5386\u53f2\u539f\u56e0\u3002<br \/>\u5982\u679c\u5927\u5bb6\u90fd\u7528 SCTP \u6216\u8005 SCTP \u6bd4 TCP \u3001UDP \u66f4\u65e9\u88ab\u8bbe\u8ba1\u51fa\u6765\u7684\u8bdd\u4e5f\u6ca1 TLV \u8fd9\u832c\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071631\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : neoblackcap <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @no1xsyzy SCTP \u636e\u6211\u4e86\u89e3\uff0c\u4e5f\u5c31\u662f\u8fd0\u8425\u5546\u5728\u81ea\u5df1\u5185\u90e8\u7684\u4e00\u4e9b\u7f51\u91cc\u9762\u7528\u3002\u5e7f\u4e49\u7684\u7f51\u7edc\uff0c\u5404\u79cd\u8bbe\u5907\u662f\u9488\u5bf9 TCP \u4ee5\u53ca UDP \u6765\u8bbe\u8ba1\u7684\uff0c\u8bbe\u5907\u91cc\u9762\u662f\u6709 ASIC \u53bb\u5904\u7406 TCP\/UDP\uff0cSCTP \u6ca1\u6709\u8fd9\u4e9b\u786c\u4ef6\u52a0\u6210\uff0c\u901f\u5ea6\u7acb\u9a6c\u4e0b\u964d\u3002<br \/>\u8fd9\u4e5f\u662f\u4e3a\u5565 QUIC \u4f1a\u8bbe\u8ba1\u5728 UDP \u4e4b\u4e0a\uff0c\u800c\u4e0d\u662f\u53e6\u8d77\u7089\u7076\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071632\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : littlecreek <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Mutoo \u8c22\u8c22                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071633\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @neoblackcap #88 \u90a3\u5c31\u6ca1\u6bdb\u75c5\u4e86\uff0c\u8bf4\u767d\u4e86 \u5c31\u662f IPv4 \u65f6\u4ee3\uff0c\u5927\u90e8\u5206\u8def\u7531\u5668\u8ddf\u786c\u4ef6\u5e73\u53f0 \u53ea\u9488\u5bf9 UDP \u8ddf TCP \u8bbe\u8ba1\u4e86\uff0c\u5b9e\u9645\u4e0a\u4e5f\u5c31\u662f UDP \u8ddf TCP \u6210\u4e3a\u4e8b\u5b9e\u6807\u51c6\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071634\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @neoblackcap #88 \u4e00\u822c\u5bb6\u7528\u5e94\u8be5\u90fd\u662f\u4f9d\u8d56\u786c\u4ef6 NAT \u8f6c\u53d1\uff0c\u53ef\u80fd\u771f\u6ca1\u6709\u4e3a SCTP \u8bbe\u8ba1\u8fc7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071635\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lewis89 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5176\u5b9e\u4e3b\u53ea\u8981\u60f3\u6e05\u695a\u4e00\u4e2a\u95ee\u9898\u5c31\u884c\u4e86\uff0chttp \u662f\u4f9d\u8d56 TCP \u8bbe\u8ba1\u7684\uff0c\u4f60\u770b http \u62a5\u6587\u5934\u91cc\u9762\u6709\u4e00\u4e2a content-length \u5b9e\u9645\u4e0a\u5c31\u662f\u7528\u6765\u5e72 \u6cbe\u5305 \u9ecf\u5305 \u62c6\u5305 \u8fd9\u4e2a\u4e8b\u60c5\uff0c\u56e0\u4e3a\u5bf9\u4e8e http \u670d\u52a1\u5668\u6765\u8bb2\uff0c\u771f\u6b63\u7684\u62a5\u6587\u534f\u8bae\u662f\u4e00\u4e2a http \u5934 + http body, \u4f46\u662f\u6d41\u5f0f\u4f20\u8f93 \u5982\u679c\u6ca1\u6709\u622a\u65ad\u6d41\u7684\u673a\u5236 \u5c31\u4f1a\u53d8\u6210 http \u5934 + http body + \u4e0b\u4e00\u4e2a http \u5934\u7684\u4e00\u90e8\u5206 \uff0c\u8fd9\u6837\u89e3\u6790 tcp \u6d41\u5c31\u4f1a\u62a5\u9519\uff0c\u6240\u4ee5 content-length \u5c31\u662f\u7528\u6765\u5e72\u8fd9\u4e2a\u4e8b\u60c5\u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071636\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @neoblackcap ASIC \u662f\u76f2\u70b9<br \/>\u786e\u5b9e\uff0c\u6d88\u606f\u4f20\u9012\u8fd8\u662f WebSocket \u5427<br \/>\u6216\u8bb8\u54ea\u4e2a\u5e73\u884c\u4e16\u754c\u6709 SCTP \u662f\u4e8b\u5b9e\u6807\u51c6\uff0c\u4e5f\u5c31\u6ca1\u6709\u7c98\u5305\u95ee\u9898\u548c\u7c98\u5305\u8b66\u5bdf\u4e86\uff08\u80fd\u778e\u4e89\u7684\u4e1c\u897f\u591a\u4e86\u53bb\u4e86\uff0c\u6ca1\u4ec0\u4e48\u610f\u4e49                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071637\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u57fa\u672c\u4e0a\u662f\u4e2a\u4fe1\u4ef0\u95ee\u9898<br \/>\u4f60\u8981\u662f\u4fe1\u4ef0\u6d41\uff0c\u90a3\u4e48\u770b\u5565\u90fd\u50cf\u6d41\u6d41<br \/>\u5982\u679c\u4fe1\u4ef0\u5305\uff0c\u770b\u5565\u90fd\u50cf\u5305\uff0c\u800c\u4e14\u8fd8\u6709\u7c98\u5305\u7684\u95ee\u9898                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071638\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : byaiu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @soulzz \u4e00\u4e2a fd \u53ea\u80fd\u5173\u8054\u4e00\u4e2a socket \u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071639\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuboying <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6253\u4e2a\u4e70\u4e1c\u897f\u7684\u6bd4\u65b9\uff0c\u4f60\u7f51\u4e0a\u4e70\u4e86 20 \u4e2a\u4e1c\u897f\uff0c\u53bb\u5feb\u9012\u70b9\u53d6\u7684\u65f6\u5019\uff08\u6309\u987a\u5e8f\uff09\u53ef\u80fd\u62ff\u5230 1 \u4ef6\u53ef\u80fd\u62ff\u5230 5 \u4ef6\u53ef\u80fd\u62ff\u5230 10 \u4ef6\uff0c\u4ef6\u6570\u7684\u4e8b\u60c5\u4f60\u4e0d\u80fd\u63a7\u5236\uff0c\u5feb\u9012\u4e5f\u6ca1\u6709\u4e49\u52a1\u786e\u5b9a\u4e00\u6b21\u9001\u5230\u7684\u4ef6\u6570<br \/>TCP \u662f\u597d\u4e00\u70b9\u7684\u5feb\u9012\uff0c\u53ea\u4fdd\u8bc1\u4e0d\u4e22\u4ef6\uff0c\u6216\u8005\u81f3\u5c11\u4e22\u4e86\u4f1a\u8d1f\u8d23\u518d\u8865\u53d1<br \/>UDP \u4e48\u4e22\u4e86\u5c31\u4e22\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071640\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : auto8888 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             TCP \u4e0d\u5c31\u662f\u4e00\u628a\u6536\u4e86 5 \u4e2a\u8d27 \u9700\u8981\u81ea\u5df1\u5206\u4e00\u4e0b\u5417\u3002\u3002\u3002\u5c45\u7136\u8fd8\u6709\u8b66\u5bdf\u7684\u5417                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071641\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : julyclyde <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @auto8888 \u95ee\u9898\u5728\u4e8e\u5e76\u4e0d\u89c1\u5f97\u4e00\u6b21\u4e94\u4e2a\uff0c\u4e5f\u53ef\u80fd\u662f\u4e00\u6b21\u6536\u5230 0.35+1+1+1+1+0.87 \u8fd9\u6837                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"5071642\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : auto8888 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @julyclyde \u786e\u5b9e\uff0cTCP \u53ea\u4fdd\u8bc1\u62a5\u6587\u7684\u5148\u540e\u987a\u5e8f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u600e\u4e48\u7406\u89e3 TCP \u7c98\u5305\u4e0e\u62c6\u5305? \u8cc7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/316723"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=316723"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/316723\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=316723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=316723"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=316723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}