{"id":555022,"date":"2022-02-17T08:27:24","date_gmt":"2022-02-17T00:27:24","guid":{"rendered":"http:\/\/4563.org\/?p=555022"},"modified":"2022-02-17T08:27:24","modified_gmt":"2022-02-17T00:27:24","slug":"%e5%85%b3%e4%ba%8e-socket-%e7%9a%84%e4%b8%80%e4%ba%9b%e9%97%ae%e9%a2%98-4","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=555022","title":{"rendered":"\u5173\u4e8e socket \u7684\u4e00\u4e9b\u95ee\u9898"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1> \u5173\u4e8e socket \u7684\u4e00\u4e9b\u95ee\u9898 <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : liu1996 <\/span>  <span><i><\/i> 23<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6700\u8fd1\u5728\u5b66\u4e60\u8ba1\u7b97\u673a\u7f51\u7edc\uff0c\u770b\u5230 socket \u65f6\u4ea7\u751f\u4e86\u4e00\u4e2a\u95ee\u9898\u3002socket \u662f tcp\/udp \u7b49\u7684\u4e00\u4e2a\u62bd\u8c61\u63a5\u53e3\uff0c\u90a3\u4e48\u662f\u4e0d\u662f\u51e0\u4e4e\u6240\u6709\u4f7f\u7528 tcp\/udp \u6765\u5efa\u7acb\u8fde\u63a5\u7684\u90fd\u9700\u8981\u901a\u8fc7 socket \u6765\u8c03\u7528 tcp\/udp \uff1f\u6bd4\u5982 http \u534f\u8bae\u7b49\u3002 \u7f51\u7edc\u4f20\u8f93\u7684\u62a5\u6587\u662f\u5728\u4f20\u8f93\u5c42\u6765\u5bfb\u627e\u5bf9\u5e94\u7aef\u53e3\u53f7\uff0c\u8fd9\u4e2a\u662f\u4e0d\u662f\u5c31\u662f\u901a\u8fc7 socket \u6765\u5b8c\u6210\u7684\uff1f socket \u5728\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u7aef\u5efa\u7acb\u8fde\u63a5\u65f6\u4f1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684 socket \uff0c\u5728\u5ba2\u6237\u7aef\u6216\u8005\u670d\u52a1\u7aef\u8c03\u7528 close \u65b9\u6cd5\u65f6\u65ad\u5f00\u8fd9\u4e2a\u8fde\u63a5\uff0c\u90a3\u4e48 http \u534f\u8bae\u6bcf\u6b21\u8bf7\u6c42\u662f\u4e0d\u662f\u90fd\u4f1a\u521b\u5efa\u4e00\u4e2a socket?\u5728\u670d\u52a1\u7aef\u54cd\u5e94\u5b8c\u6bd5\u540e\u5173\u95ed\u8fd9\u4e2a socket \u8fde\u63a5\uff1f<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>21<\/span>) <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"7119129\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mangoDB <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u5982\u679c\u4f7f\u7528 Python \u7684\u8bdd\uff0c\u53ef\u4ee5\u81ea\u5df1\u7f16\u5199\u4e00\u6bb5\u901a\u8fc7 Requests \u5e93\u53d1\u8d77 HTTP \u8bf7\u6c42\u7684\u4ee3\u7801\uff0c\u7136\u540e\u5728 Debug \u6a21\u5f0f\u4e0b\u4e00\u6b65\u4e00\u6b65\u7684\u8d70\u4e0b\u53bb\uff0c\u4f60\u5c31\u80fd\u627e\u5230\u7b54\u6848\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119130\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : mazyi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4f60\u662f\u95ee http \u8fd8\u662f\u95ee socket \u8fd8\u662f\u95ee\u6240\u6709\u7684\u5e94\u7528\u5c42\u534f\u8bae\uff0c\u4f60\u9700\u8981\u641e\u6e05\u695a <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119131\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aladdinding <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> http \u6709 keep-alive \uff0c\u53ef\u4ee5\u591a\u4e2a\u8bf7\u6c42\u8d70\u4e00\u4e2a\u8fde\u63a5 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119132\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ye4tar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> tcp\/udp \u662f\u534f\u8bae\uff0c\u662f\u6982\u5ff5\u4e0a\u662f\u5b66\u672f\u4e0a\u7684\u4e00\u5957\u79f0\u547c\uff0c\u4ed6\u63d0\u4f9b\u4e86\u4e00\u6574\u5957\u65b9\u6cd5\u8bba\u3002<br \/>socket \u662f\u7ed9\u4f60\u4e00\u79cd\u5b9e\u73b0\uff0c\u4e5f\u5c31\u662f\u7a0b\u5e8f\uff0c\u5e93\uff0c\u5b8c\u6574\u7684\u5b9e\u73b0\u3002<br \/>\u4f60\u6784\u5efa\u7684\u7a0b\u5e8f\u65e0\u975e\u662f\u4f7f\u7528 socket \u5e93\uff0c\u5982\u679c\u4f60\u61c2\u786c\u4ef6\uff0c\u624b\u91cc\u6709\u7f51\u5361\u9a71\u52a8\uff0c\u6216\u8005\u5e72\u8106\u7f51\u5361\u90fd\u662f\u4f60\u81ea\u5df1\u751f\u4ea7\u7684\uff0c\u4e14\u7b26\u5408\u6807\u51c6\uff0c\u90a3\u4f60\u5b8c\u5168\u53ef\u4ee5\u81ea\u5df1\u5728\u9a71\u52a8\u5c42\u81ea\u5df1\u5b8c\u6210\u7f51\u7edc\u4ea4\u4e92\uff0c\u7f51\u5361\u65e0\u975e\u5c31\u662f\u628a\u6570\u636e\u53d8\u6210\u4e00\u79cd\u4fe1\u53f7\uff0c\u5bf9\u7aef\u518d\u628a\u8fd9\u4e2a\u4fe1\u53f7\u89e3\u7801\u6210\u6570\u636e\u800c\u5df2\u561b\uff01 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119133\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : BigMountain <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4f60\u5c31\u7406\u89e3 socket \u662f tcp\/udp \u534f\u8bae\u7684\u62bd\u8c61\u5c31\u884c\u4e86 \u5b83\u5de5\u4f5c\u5728 tcp\/udp \u534f\u8bae\u8fd9\u5c42\u3002<br \/>\u5176\u4ed6\u7684\u4f8b\u5982 http resp \u7b49\u7b49\u534f\u8bae\u90fd\u662f\u57fa\u4e8e tcp \u534f\u8bae\u3002 \u5982\u679c\u4f60\u9700\u8981\u5b9e\u73b0\u4e00\u4e2a http \u534f\u8bae\uff08 http \u57fa\u4e8e tcp \uff09 \u90a3\u4e48\u5c31\u901a\u8fc7 socket \u8fdb\u884c\u7f16\u89e3\u7801\u8f6c\u6362\u6765\u5b9e\u73b0 http \u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119134\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sujin190 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4f60\u60f3\u7684\u662f\u5bf9\u7684\uff0c\u8fd9\u5c31\u662f\u5206\u5c42\u62bd\u8c61\u7684\u903b\u8f91 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119135\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : misaka19000 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u989d\u3002\u3002\u3002\u591a\u770b\u4e66\u5427<br \/>\u300a HTTP \u6743\u5a01\u6307\u5357\u300b\u3001\u300a Unix \u73af\u5883\u9ad8\u7ea7\u7f16\u7a0b\u300b\u3001\u300a Unix \u7f51\u7edc\u7f16\u7a0b\u300b  <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119136\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lesismal <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4e3b\u9700\u8981\uff1a\u300a\u56fe\u89e3 tcp\/ip \u300b+\u300a tcp\/ip \u8be6\u89e3\u300b+ wireshark<br \/>1. \u5165\u95e8\u9636\u6bb5\uff0c\u5982\u679c\u4e0d\u770b\u56fe\u89e3\u8fd9\u672c\u3001\u76f4\u63a5\u5543\u8be6\u89e3\u6216\u8005\u5176\u4ed6\u6570\u5f88\u5403\u529b\u8981\u82b1\u8d39\u5f88\u4e45\uff1b<br \/>2. \u6ca1\u6709\u8be6\u89e3\u8fd9\u672c\uff0c\u56fe\u89e3\u53c8\u592a\u7b80\u5355\u4e86\uff0c\u4e86\u89e3\u4e0d\u5230\u6df1\u5165\u7ec6\u81f4\uff1b<br \/>3. \u6ca1\u6709 wireshark \uff0c\u770b\u518d\u591a\u4e5f\u96be\u8bb0\u5f97\u4f4f\uff0c\u5b9e\u8df5\u51fa\u771f\u77e5\u3002\u53e6\u5916 tcp \u662f\u5927\u5934\uff0c\u628a tcp 11 \u79cd\u72b6\u6001\u8f6c\u6362\u56fe\u653e\u5728\u684c\u9762\u4e0a\uff0c\u914d\u5408\u6293\u5305\u770b tcp \u5404\u79cd\u6d41\u7a0b\uff0ctcp \u641e\u719f\u6089\u4e86\u5176\u4ed6\u7684\u591a\u770b\u770b\u5c31\u5bb9\u6613\u5f97\u591a\u4e86 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119137\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cweijan <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4e0a\u7684\u6254\u4e00\u5806\u4e66\u597d\u50cf\u6709\u70b9\u6bdb\u75c5, \u4e3b\u5df2\u7ecf\u7406\u89e3\u7684\u5dee\u4e0d\u591a\u4e86, \u6709\u4e24\u4e2a\u8bef\u533a<br \/>1. Socket \u662f\u7531\u64cd\u4f5c\u7cfb\u7edf\u5b9e\u73b0\u7684, \u6240\u4ee5\u8bf4\u662f\u7531\u64cd\u4f5c\u64cd\u4f5c\u5bfb\u627e\u7aef\u53e3\u6bd4\u8f83\u5408\u7406<br \/>2. \u4e0d\u662f\u6bcf\u4e2a HTTP \u8bf7\u6c42\u90fd\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 Socket(\u5373 TCP \u8fde\u63a5), \u4f8b\u5982\u6d4f\u89c8\u5668\u5bf9 HTTP \u5b9e\u73b0\u4e86 Keep-Alive \u673a\u5236, \u95f4\u9694\u65f6\u957f\u8f83\u77ed\u7684 HTTP \u8bf7\u6c42\u4f1a\u590d\u7528 TCP \u8fde\u63a5, \u4e0d\u4f1a\u91cd\u65b0\u521b\u5efa <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119138\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CRVV <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> socket \u6307\u7684\u662f https:\/\/en.wikipedia.org\/wiki\/Berkeley_sockets<br \/>\u5b83\u662f\u4e00\u4e2a\u63a5\u53e3\uff08 API, interface \uff09\u800c\u4e0d\u662f\u5b9e\u73b0\uff08 implementation \uff09\u3002<br \/>&gt; \u662f\u4e0d\u662f\u51e0\u4e4e\u6240\u6709\u4f7f\u7528 tcp\/udp \u6765\u5efa\u7acb\u8fde\u63a5\u7684\u90fd\u9700\u8981\u901a\u8fc7 socket \u6765\u8c03\u7528 tcp\/udp \uff1f<br \/>TCP\/UDP \u4e5f\u53ef\u4ee5\u7528\u5176\u5b83\u7684\u63a5\u53e3\uff0c\u6bd4\u5982 https:\/\/www.nongnu.org\/lwip\/2_0_x\/raw_api.html<br \/>\u4f46\u662f\u5728\u901a\u5e38\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e0a\uff08 Windows\/Linux\/BSD\/macOS \uff09\u7528\u7684\u63a5\u53e3\u90fd\u662f socket<br \/>&gt; \u7f51\u7edc\u4f20\u8f93\u7684\u62a5\u6587\u662f\u5728\u4f20\u8f93\u5c42\u6765\u5bfb\u627e\u5bf9\u5e94\u7aef\u53e3\u53f7\uff0c\u8fd9\u4e2a\u662f\u4e0d\u662f\u5c31\u662f\u901a\u8fc7 socket \u6765\u5b8c\u6210\u7684\uff1f<br \/>\u7aef\u53e3\u53f7\u8fd9\u4e9b\u5c5e\u4e8e\u7f51\u7edc\u534f\u8bae\u7684\u5b9e\u73b0\uff0c\u548c\u63a5\u53e3\u6ca1\u5173\u7cfb\u3002<br \/>\u5176\u5b83\u548c HTTP \u76f8\u5173\u7684\u95ee\u9898\uff0c\u90a3\u662f HTTP \u534f\u8bae\u7684\u5b9e\u73b0\uff0c\u548c socket \u66f4\u6ca1\u5173\u7cfb\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119139\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u662f\u3002\u5982\u679c\u4f60\u6307\u7684 socket \u662f socket API \uff0c\u4e0d\u662f\u3002HTTP\/1.x \u6ca1\u6709\u5f00\u542f Keep-Alive \u7684\u60c5\u51b5\u4e0b\uff0c\u662f\u3002\u662f\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119140\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : liu1996 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @cweijan \u611f\u8c22\u56de\u590d\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119141\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : liu1996 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @CRVV \u611f\u8c22\u56de\u590d\u3002\u6211\u4e0a\u9762\u7684\u5173\u4e8e http \u7684\u95ee\u6cd5\u4e0d\u5bf9\uff0c\u5176\u5b9e\u6211\u60f3\u8868\u8fbe\u7684\u662f http \u8bf7\u6c42\u5efa\u7acb tcp \u8fde\u63a5\u7684\u8bdd\u9700\u8981 3 \u6b21\u63e1\u624b\uff0c\u8fd9\u4e2a\u662f\u4e0d\u662f\u901a\u8fc7 socket \u6765\u5b9e\u73b0\u7684 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119142\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : liu1996 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @BigMountain \u611f\u8c22\u56de\u590d <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119143\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : unixeno <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @liu1996 \u662f\uff0c\u4e5f\u4e0d\u662f\uff0c\u8981\u770b\u4f60\u8bf4\u7684 socket \u5177\u4f53\u6307\u4ee3\u7684\u5565\u3002TCP \u63e1\u624b\u662f\u64cd\u4f5c\u7cfb\u7edf\u5e2e\u4f60\u5904\u7406\u7684\u3002<br \/>\u5bf9\u4e8e\u5ba2\u6237\u7aef\u6765\u8bf4\uff0c\u4f60 connect \u65f6\u5c31\u4f1a\u8fdb\u884c\u63e1\u624b\uff0c\u5b8c\u6210\u4e4b\u540e\u624d\u4f1a\u8fd4\u56de\u4f60 fd \u3002<br \/>\u5bf9\u4e8e\u670d\u52a1\u7aef\uff0c\u4f60 accept \u7684\u65f6\u5019\u7cfb\u7edf\u4f1a\u5e2e\u4f60\u5904\u7406\u63e1\u624b <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119144\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : advancejar <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @liu1996 \u5b66\u4e2a django \u5f00\u5934\u7684\u6765\u8bf4\u8bf4\uff0cpython \u5c31\u662f\u7528 socket \u6765\u5b9e\u73b0 http \u7684 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119145\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ohwind <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> TCP\/IP \u662f\u534f\u8bae\uff0c\u800c Socket \u662f\u62bd\u8c61\u51fa\u6765\u7684\u63a5\u53e3(API)\uff0c\u4e00\u822c\u7cfb\u7edf\u7684 socket \u51fd\u6570\u3001Socket \u7c7b\u5219\u662f\u63a5\u53e3\u7684\u5b9e\u73b0\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119146\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : git00ll <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4e3b\uff0cjava \u91cc\u9762\uff0capache httpclient \u53d1\u9001 http \u8bf7\u6c42\uff0c\u5c31\u662f\u901a\u8fc7\u521b\u5efa java \u91cc\u9762\u7684 socket \uff0c\u5c06\u62a5\u6587\u53d1\u9001\u8fc7\u53bb\u7684\u3002<br \/>\u53ea\u4e0d\u8fc7\u7528\u5b8c\u540e socket \u8fde\u63a5\u4f1a\u653e\u5230\u6c60\u91cc\u590d\u7528\u3002<br \/><img decoding=\"async\" src=\"https:\/\/i.imgur.com\/p71XhF9.png\" rel=\"noreferrer\" alt=\"\u5173\u4e8e socket \u7684\u4e00\u4e9b\u95ee\u9898\"> <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119147\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ungrown <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u4e00\u4e2a\u57fa\u7840\u6982\u5ff5\u7684\u95ee\u9898\uff0c\u70b8\u51fa\u6765\u4e00\u5806\u5e73\u65f6\u53ea\u987e\u5e72\u6d3b\u5374\u4ece\u6765\u6ca1\u628a\u57fa\u672c\u539f\u7406\u6574\u660e\u767d\u7684\u6c34\u8d27 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119148\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ungrown <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @CRVV #10 <br \/>\u54b1\u975e\u5f97\u8fd9\u4e48\u54ac\u6587\u56bc\u5b57\u5417\uff1f\u5c31\u7b97\u8981\u56bc\uff0c\u5c31\u4e0d\u80fd\u5148\u653e\u5bbd\u5bf9\u8bed\u4e49\u7684\u8981\u6c42\uff0c\u628a\u5173\u8054\u6027\u8bb2\u5b8c\u4e86\uff0c\u518d\u8865\u5145\u8bf4\u660e\u201c\u95ee\u9898\u4e2d\u5404\u6982\u5ff5\u95f4\u7684\u4e0d\u5bf9\u7b49\u6027\u201d\u5417\uff1f<br \/>\u5957\u63a5\u5b57\u662f\u63a5\u53e3\uff0cHTTP \u662f\u534f\u8bae\uff0c\u8fd9\u4fe9\u662f\u4e24\u4e2a\u201c\u8c61\u9650\u201d\u7684\u4e1c\u897f\u6ca1\u9519\uff0c\u4f46\u771f\u5c31\u4e00\u53e5\u201c\u66f4\u6ca1\u5173\u7cfb\u4e86\u201d\u8fd9\u4e5f\u592a\u4e0d\u8d1f\u8d23\u4efb\u4e86\u3002<br \/>HTTP \u7b97\u662f\u5e94\u7528\u5c42\u534f\u8bae\uff0cTCP \u662f\u4f4d\u4e8e\u66f4\u5e95\u5c42\u7684\u4f20\u8f93\u5c42\u534f\u8bae\u3002\u5b9e\u73b0 TCP \u7684\u5e93\u63d0\u4f9b\u4e86\u5957\u63a5\u5b57\u7684\u8c03\u7528\u63a5\u53e3\uff0c\u5b9e\u73b0 HTTP \u7684\u5e93\u5927\u591a\u6570\u4e5f\u4f9d\u8d56\u4e8e\u8fd9\u4e9b\u63a5\u53e3\u3002\u4e3b\u60f3\u95ee\u7684\u4e0d\u5c31\u662f\u8fd9\u65b9\u9762\u7684\u4fe1\u606f\u5417\uff1f  <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7119149\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CRVV <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @ungrown <br \/>\u56e0\u4e3a\u5f88\u591a\u4eba\u90fd\u4e0d\u77e5\u9053 socket \u53ea\u662f\u4e00\u4e2a\u63a5\u53e3(\u4ece\u5176\u5b83\u56de\u590d\u5c31\u80fd\u770b\u51fa\u6765)\uff0c\u6240\u4ee5\u5f3a\u8c03\u4e00\u4e0b\u8fd9\u4ef6\u4e8b\u60c5\u3002<br \/>\u6211\u627f\u8ba4\u6211\u7684\u56de\u7b54\u5bf9\u4e3b\u5176\u5b9e\u4e0d\u592a\u6709\u5e2e\u52a9\u3002\u4e0d\u8fc7\uff0c\u771f\u6b63\u5bf9\u4e3b\u6709\u5e2e\u52a9\u7684\u4e1c\u897f\u662f\u6559\u79d1\u4e66\uff0c\u4e0a\u9762\u4e5f\u5df2\u7ecf\u6709\u4eba\u544a\u8bc9\u4e86\u4e3b\u5230\u5e95\u8981\u770b\u4ec0\u4e48\u4e66\u3002<br \/>\u6211\u53cd\u5bf9\u5230\u8bba\u575b\u95ee\u4e00\u4e2a\u8bfe\u672c\u4e0a\u5c31\u6709\u7b54\u6848\u7684\u95ee\u9898\uff0c\u8fd9\u79cd\u4e1c\u897f\u6ca1\u6709\u901f\u6210\u7684\u65b9\u6cd5\uff0c\u771f\u60f3\u5b66\u5c31\u76f4\u63a5\u770b\u8bfe\u672c\u3002\u800c\u4e14\u8fd9\u51e0\u4e2a\u4e1c\u897f\u90fd\u4e0d\u5c5e\u4e8e\u540c\u4e00\u95e8\u8bfe\u3002TCP\/UDP\/HTTP \u534f\u8bae\u5c5e\u4e8e\u8ba1\u7b97\u673a\u7f51\u7edc\u8bfe\uff0csocket \u662f\u64cd\u4f5c\u7cfb\u7edf\u8bfe\u7a0b\u7684\u5185\u5bb9\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u5173\u4e8e socket \u7684\u4e00\u4e9b\u95ee\u9898 \u8cc7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/555022"}],"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=555022"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/555022\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=555022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=555022"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=555022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}