{"id":93345,"date":"2026-08-12T14:08:51","date_gmt":"2026-08-12T06:08:51","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/93345.html"},"modified":"2026-08-12T14:08:51","modified_gmt":"2026-08-12T06:08:51","slug":"%e4%bd%bf%e7%94%a8%e4%ba%8b%e4%bb%b6%e5%be%aa%e7%8e%af%e7%ae%a1%e7%90%86socket%ef%bc%8c%e5%a4%84%e7%90%86%e5%a4%a7%e6%96%87%e4%bb%b6%e4%bc%a0%e8%be%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/93345.html","title":{"rendered":"\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u7ba1\u7406socket\uff0c\u5904\u7406\u5927\u6587\u4ef6\u4f20\u8f93"},"content":{"rendered":"<p>\u672c\u6b21\u9879\u76ee\u4e3aQt\u804a\u5929\u5ba4\u7b2c\u4e09\u6b21\u5f00\u53d1\u7684\u7ecf\u9a8c\u603b\u7ed3<\/p>\n<p>\u9879\u76ee\u5730\u5740&#xff1a;<\/p>\n<p>https:\/\/gitee.com\/how-to-name\/qt&#8212;simple-online-chat-room GitHub &#8211; RH211-sys\/qt&#8212;simple-online-chat-room \u00b7 GitHub<\/p>\n<p>\u00a0<\/p>\n<h3>\u5feb\u901f\u7406\u89e3\u4e8b\u4ef6\u5faa\u73af<\/h3>\n<p>\u53ef\u4ee5\u501f\u52a9epoll\u7684\u6267\u884c\u8fc7\u7a0b\u6765\u5feb\u901f\u7406\u89e3\u4e8b\u4ef6\u5faa\u73af\u673a\u5236&#xff0c;\u5176\u5b9e\u5c31\u662f\u5982\u4e0b&#xff1a;<\/p>\n<li>\n<p>\u62e5\u6709\u4e8b\u4ef6\u5faa\u73af\u8fd9\u4e00\u5c5e\u6027\u7684\u7ebf\u7a0b\u5148\u8fdb\u5165\u963b\u585e\u6001<\/p>\n<\/li>\n<li>\n<p>\u5f53\u4e8b\u4ef6\u53d1\u751f\u65f6(\u7f51\u7edc\u6570\u636e\u5230\u8fbe&#xff0c;\u8d85\u65f6\u7b49)&#xff0c;\u5524\u9192\u8be5\u7ebf\u7a0b<\/p>\n<\/li>\n<li>\n<p>\u5904\u7406\u4e8b\u4ef6&#xff1a;\u8c03\u7528\u5bf9\u5e94\u7684\u5904\u7406\u51fd\u6570<\/p>\n<\/li>\n<li>\n<p>\u5904\u7406\u5b8c\u6210\u540e\u8fdb\u5165\u963b\u585e\u6001&#xff0c;\u56de\u5230\u6b65\u9aa41<\/p>\n<\/li>\n<p>\u4e8b\u4ef6\u53d1\u751f\u540e&#xff0c;\u5185\u6838\u628a&#034;\u53d1\u751f\u4e8b\u4ef6\u7684\u5bf9\u8c61&#034;\u6574\u7406\u6210\u4e00\u5f20\u5c31\u7eea\u5217\u8868\u76f4\u63a5\u4ea4\u7ed9\u4e86\u7ebf\u7a0b\u2014\u2014\u7ebf\u7a0b\u9192\u6765\u76f4\u63a5\u8bfb\u8fd9\u5f20\u5217\u8868&#xff0c;\u4e0d\u9700\u8981\u56de\u5bb9\u5668\u91cc\u9010\u4e2a\u627e\u54ea\u4e2a\u5bf9\u8c61\u53d1\u751f\u4e86\u4e8b\u4ef6<\/p>\n<p>\u00a0<\/p>\n<h3>\u4e8b\u4ef6\u5faa\u73af\u5bf9socket\u7ba1\u7406<\/h3>\n<p>\u5982\u4f55\u826f\u597d\u7684\u7ba1\u7406socket\u5728\u7f51\u7edc\u9879\u76ee\u4e2d\u662f\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u4e8b\u60c5&#xff0c;\u597d\u7684\u7ba1\u7406\u65b9\u5f0f\u5f80\u5f80\u80fd\u63d0\u9ad8\u5f00\u53d1\u6548\u7387&#xff0c;\u63d0\u9ad8\u53ef\u7ef4\u62a4\u6027<\/p>\n<h4>\u5bf9socket\u7ba1\u7406\u7684\u89e3\u51b3\u65b9\u6848\u53cd\u601d<\/h4>\n<p>\u5728\u8be5Qt\u9879\u76ee\u4e2d&#xff0c;\u6211\u524d\u540e\u5c1d\u8bd5\u4e86\u4e09\u4e2a\u9636\u6bb5\u7684\u89e3\u51b3\u65b9\u6848<\/p>\n<li>\n<p>\u6240\u6709\u7ebf\u7a0b\u90fd\u80fd\u5bf9socket\u8fdb\u884c\u8bfb\u5199<\/p>\n<\/li>\n<li>\n<p>\u6240\u6709\u7ebf\u7a0b\u90fd\u80fd\u5bf9socket\u8fdb\u884c\u52a0\u9501\u8bfb\u5199<\/p>\n<\/li>\n<li>\n<p>\u4e3b\u7ebf\u7a0b\u5bf9socket\u8bfb\u5199&#xff08;\u7f51\u7edcIO&#xff09;&#xff0c;\u5176\u4ed6\u7ebf\u7a0b\u8fdb\u884c\u672c\u5730IO\u548c\u5176\u4ed6\u64cd\u4f5c<\/p>\n<\/li>\n<p>\u65b9\u68481\u7684\u601d\u8003\u6765\u6e90&#xff1a;\u4e3a\u4e86\u80fd\u5feb\u901f\u7684\u5904\u7406\u7f51\u7edcIO&#xff0c;\u60f3\u7740\u4f7f\u7528\u591a\u7ebf\u7a0b\u5904\u7406\u7f51\u7edc\u6570\u636e\u3002<\/p>\n<p>\u7f3a\u9677&#xff1a;\u5bb9\u6613\u51fa\u73b0\u7ade\u6001&#xff0c;\u4f1a\u51fa\u73b0\u591a\u4e2a\u7ebf\u7a0b\u540c\u65f6\u5bf9\u540c\u4e00\u4e2asocket\u8bfb\/\u5199\u7684\u60c5\u51b5&#xff0c;\u4e14\u540e\u7eed\u4e86\u89e3\u5230Qt\u4e0d\u63a8\u8350\u8de8\u7ebf\u7a0b\u76f4\u63a5\u64cd\u4f5csocket\u5bf9\u8c61<\/p>\n<p>\u00a0<\/p>\n<p>\u65b9\u68482\u7684\u601d\u8003\u6765\u6e90&#xff1a;\u4e3a\u4e86\u907f\u514d\u7ade\u6001&#xff0c;\u53ea\u80fd\u727a\u7272\u4e00\u4e9b\u6027\u80fd&#xff0c;\u52a0\u9501\u6765\u540c\u6b65\u5904\u7406\u7f51\u7edc\u6570\u636e<\/p>\n<p>\u7f3a\u9677&#xff1a;\u9891\u7e41\u7684\u6d88\u606f\u8f6c\u53d1\/\u6587\u4ef6\u4f20\u8f93&#xff0c;\u5bb9\u6613\u5bfc\u81f4\u9501\u7684\u5f00\u9500\u6bd4\u8f83\u5927&#xff0c;\u4e14\u540e\u7eed\u4e86\u89e3\u5230Qt\u4e0d\u63a8\u8350\u8de8\u7ebf\u7a0b\u76f4\u63a5\u64cd\u4f5csocket\u5bf9\u8c61&#xff0c;\u5c3d\u7ba1\u4fdd\u8bc1\u4e86\u540c\u6b65<\/p>\n<p>\u00a0<\/p>\n<p>\u65b9\u68483\u7684\u601d\u8003\u6765\u6e90&#xff1a;\u51cf\u5c11\u9501\u5f00\u9500&#xff0c;\u7528\u4e3b\u7ebf\u7a0b\u5904\u7406\u7f51\u7edcIO<\/p>\n<p>\u4f18\u52bf&#xff1a;\u5b9e\u73b0\u7f51\u7edcIO\u548c\u672c\u5730IO\u7684\u89e3\u8026&#xff0c;\u4e14\u6027\u80fd\u6bd4\u65b9\u68482\u63d0\u5347\u5f88\u5927 \u6f5c\u5728\u7f3a\u9677&#xff1a;\u5355\u7ebf\u7a0b\u7ba1\u7406\u53ef\u80fd\u4e0d\u652f\u6301\u5927\u91cf\u5ba2\u6237\u7aef\u7684\u7ba1\u7406<\/p>\n<h4>\u66f4\u597d\u7684\u65b9\u6848&#xff08;\u66f4\u9002\u5408\u5927\u4f53\u91cf\u7684\u7f51\u7edc\u9879\u76ee\u89c4\u6a21&#xff09;<\/h4>\n<p>\u4f7f\u7528IO\u7ebf\u7a0b\u7ec4\u5bf9socket\u5206\u7ec4\u7ba1\u7406&#xff08;\u6bcf\u4e2a\u7ebf\u7a0b\u8d1f\u8f7d\u5747\u5300\u7684socket&#xff09;<\/p>\n<p>\u53ef\u4ee5\u7b80\u5355\u7406\u89e3\u4e3a\u5982\u4e0b\u6a21\u578b&#xff1a;<\/p>\n<p>\u00a0\u7528IO\u7ebf\u7a0b\u7ec4\u7ba1\u7406socket<br \/>\n\u00a0\u200b<br \/>\n\u00a0\u4efb\u52a1\u961f\u5217\u6240\u5b58\u50a8\u7684\u4efb\u52a1\u7c7b\u578b&#xff1a;<br \/>\n\u00a0 1. \u65b0\u589esocket(\u6309\u6700\u5c11\u8fde\u63a5\u6570\u5206\u914d\u5230\u7ebf\u7a0b)<br \/>\n\u00a0 2. \u5220\u9664socket<br \/>\n\u00a0 3. \u8de8\u7ebf\u7a0b\u5199\u8bf7\u6c42&#xff08;\u5176\u4ed6\u7ebf\u7a0b\u8981\u5f80\u67d0\u4e2asocket\u5199\u6570\u636e\u65f6&#xff0c;\u6295\u9012&#034;\u6570\u636e &#043; \u76ee\u6807socket&#034;&#xff0c;\u7531\u8be5socket\u6240\u5c5e\u7ebf\u7a0b\u6267\u884cwrite\/flush&#xff09;<br \/>\n\u00a0<br \/>\n\u00a0\u7ebf\u7a0b\u6c60\u4e2d\u7684\u6bcf\u4e2a\u7ebf\u7a0b&#xff1a;<br \/>\n\u00a0 \u6bcf\u4e2a\u7ebf\u7a0b\u5355\u72ec\u7528epoll\u53bb\u7ba1\u7406socket,\u7ebf\u7a0b\u4e4b\u95f4\u7684socket\u96c6\u4e0d\u91cd\u53e0<br \/>\n\u00a0 \u4e8b\u4ef6\u53d1\u751f&#xff1a;<br \/>\n\u00a0  1. readReady: \u7ebf\u7a0b\u5bf9\u53d1\u751f\u4e8b\u4ef6\u7684socket\u8fdb\u884c\u8bfb\u64cd\u4f5c<br \/>\n\u00a0  2. \u5176\u4ed6\u7ebf\u7a0b\u53d1\u6765\u5f80\u67d0\u4e2asocket\u7684\u5199\u64cd\u4f5c\u8bf7\u6c42&#xff1a;\u7ebf\u7a0b\u5bf9\u53d1\u751f\u4e8b\u4ef6\u7684socket\u8fdb\u884c\u5199\u64cd\u4f5c&#xff0c;\u5e76flush<br \/>\n\u00a0  3. xxxx<br \/>\n\u00a0 \u00a0<br \/>\n\u00a0 \u00a0<br \/>\n\u00a0\u4e8b\u4ef6\u5904\u7406\u5b8c\u540e(\u6ca1\u6709\u4efb\u52a1),\u8fdb\u5165\u963b\u585e\u6001&#xff0c;\u5982\u6b64\u5faa\u73af <\/p>\n<p>\u00a0<\/p>\n<p>\u8fd9\u5176\u5b9e\u4e5f\u662f\u591a Reactor \u591a\u7ebf\u7a0b\u6a21\u578b\u3002<\/p>\n<p>\u7406\u89e3\u4e86\u8fd9\u4e2a\u540e&#xff0c;\u5bf9\u591a\u7ebf\u7a0b\/\u7ebf\u7a0b\u6c60\u6a21\u578b\u7684\u8ba4\u8bc6\u4f1a\u66f4\u52a0\u6e05\u6670<\/p>\n<p>\u5b9e\u9645\u9879\u76ee\u4e2d\u7684\u60c5\u51b5\u662f&#xff1a; \u4e3b\u7ebf\u7a0b\u7edf\u4e00\u7ba1\u7406\u5927\u90e8\u5206\u7f51\u7edc I\/O&#xff0c;\u804a\u5929\u88ab\u5355\u72ec\u6d3e\u5230\u5b50\u7ebf\u7a0bA \u8bfb\u5199&#xff08;\u552f\u4e00\u4f8b\u5916&#xff0c;\u9501\u4fdd\u62a4&#xff09;<\/p>\n<p>\u56e0\u4e3a\u804a\u5929\u6d88\u606f\u5185\u5bb9\u5f88\u5c11&#xff0c;\u4e14\u6027\u80fd\u5f71\u54cd\u4e0d\u9ad8&#xff0c;\u6545\u65e0\u9700\u8fc7\u591a\u8003\u8651&#xff0c;\u5c31\u6ca1\u6709\u8fdb\u884c\u592a\u591a\u6539\u52a8<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<h3>\u7ebf\u7a0b\u6c60\u843d\u76d8\u539f\u7406&#xff08;\u751f\u4ea7-\u6d88\u8d39\u961f\u5217&#xff09;<\/h3>\n<p>\u672c\u6b21\u9879\u76ee\u7684\u7ebf\u7a0b\u6c60\u7528\u4e8e\u5904\u7406\u7f51\u7edc\u4f20\u8f93\u7684\u6587\u4ef6&#xff0c;\u628a\u5ba2\u6237\u7aef\u4f20\u6765\u7684\u6587\u4ef6\u5199\u5230\u670d\u52a1\u7aef\u7684\u78c1\u76d8\u4e2d<\/p>\n<p>\u6211\u4f7f\u7528\u4e86\u4e24\u4e2a\u4efb\u52a1\u961f\u5217<\/p>\n<p>\u961f\u5217A&#xff08;\u7ebf\u7a0b\u6c60\u4efb\u52a1\u961f\u5217&#xff09;&#xff1a;\u5ba2\u6237\u7aef\u5f00\u59cb\u4f20\u8f93\u6587\u4ef6\u65f6\u5148\u53d1 header&#xff08;\u6587\u4ef6\u540d\u3001\u5927\u5c0f\u7b49&#xff09;&#xff0c;\u4e3b\u7ebf\u7a0b\u89e3\u6790\u5b8c header \u540e\u521b\u5efa\u4e00\u4e2a\u843d\u76d8\u4efb\u52a1&#xff0c;\u63d0\u4ea4\u8fdb\u961f\u5217A\u3002<\/p>\n<p>\u961f\u5217B&#xff08;\u6bcf\u4e2a\u4efb\u52a1\u81ea\u5e26\u7684\u6570\u636e\u961f\u5217&#xff09;&#xff1a;\u4e4b\u540e\u5ba2\u6237\u7aef\u53ea\u53d1\u6570\u636e&#xff0c;\u4e3b\u7ebf\u7a0b\u6bcf\u6b21\u4ece socket \u8bfb\u51fa\u6570\u636e\u5757&#xff0c;\u8ffd\u52a0\u8fdb\u8be5\u4efb\u52a1\u81ea\u5df1\u7684\u961f\u5217B\u3002<\/p>\n<p>\u7ebf\u7a0b\u6c60\u5206\u914d\u4e00\u4e2a\u7a7a\u95f2\u7ebf\u7a0b\u6267\u884c\u8be5\u4efb\u52a1&#xff1a;\u8c03\u7528run() \u8fdb\u5165\u5faa\u73af&#xff1a;\u7b49\u81ea\u5df1\u7684\u961f\u5217B\u6709\u6570\u636e \u2192 \u53d6\u5757\u5199\u76d8&#xff1b; \u4e3b\u7ebf\u7a0b\u8bfb\u5230\u7ed3\u675f\u6807\u5fd7\u540e\u8c03 finish() \u901a\u77e5 \u2192 \u7ebf\u7a0b\u5199\u5b8c\u961f\u5217\u5269\u4f59\u6570\u636e\u3001\u7ed3\u675f\u4efb\u52a1&#xff08;\u56de\u8c03\u4e3b\u7ebf\u7a0b\u6536\u5c3e&#xff09;\u2192 \u7ebf\u7a0b\u56de\u5230\u6c60\u4e2d\u7a7a\u95f2&#xff0c;\u7b49\u5f85\u961f\u5217A\u5206\u914d\u4e0b\u4e00\u4e2a\u4efb\u52a1\u3002<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6b21\u9879\u76ee\u4e3aQt\u804a\u5929\u5ba4\u7b2c\u4e09\u6b21\u5f00\u53d1\u7684\u7ecf\u9a8c\u603b\u7ed3<br \/>\n\u9879\u76ee\u5730\u5740&#xff1a;<br \/>\nhttps:\/\/gitee.com\/how-to-name\/qt&#8212;simple-online-chat-room GitHub &#8211; RH211-sys\/qt&#8212;simple-online-chat-room \u00b7 GitHub \u5feb\u901f\u7406\u89e3\u4e8b\u4ef6\u5faa\u73af<br \/>\n\u53ef\u4ee5\u501f\u52a9epoll\u7684\u6267\u884c\u8fc7\u7a0b\u6765\u5feb\u901f\u7406\u89e3\u4e8b\u4ef6\u5faa\u73af\u673a\u5236&#xff0c;\u5176\u5b9e\u5c31\u662f\u5982\u4e0b&#xff1a; \u62e5\u6709\u4e8b\u4ef6\u5faa\u73af\u8fd9\u4e00\u5c5e\u6027\u7684\u7ebf\u7a0b\u5148\u8fdb\u5165\u963b\u585e\u6001  \u5f53\u4e8b\u4ef6\u53d1\u751f\u65f6(\u7f51\u7edc<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,218,124,78],"topic":[],"class_list":["post-93345","post","type-post","status-publish","format-standard","hentry","category-server","tag-c","tag-qt","tag-124","tag-78"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u7ba1\u7406socket\uff0c\u5904\u7406\u5927\u6587\u4ef6\u4f20\u8f93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/93345.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u7ba1\u7406socket\uff0c\u5904\u7406\u5927\u6587\u4ef6\u4f20\u8f93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6b21\u9879\u76ee\u4e3aQt\u804a\u5929\u5ba4\u7b2c\u4e09\u6b21\u5f00\u53d1\u7684\u7ecf\u9a8c\u603b\u7ed3 \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitee.com\/how-to-name\/qt---simple-online-chat-room GitHub - RH211-sys\/qt---simple-online-chat-room \u00b7 GitHub \u5feb\u901f\u7406\u89e3\u4e8b\u4ef6\u5faa\u73af \u53ef\u4ee5\u501f\u52a9epoll\u7684\u6267\u884c\u8fc7\u7a0b\u6765\u5feb\u901f\u7406\u89e3\u4e8b\u4ef6\u5faa\u73af\u673a\u5236&#xff0c;\u5176\u5b9e\u5c31\u662f\u5982\u4e0b&#xff1a; \u62e5\u6709\u4e8b\u4ef6\u5faa\u73af\u8fd9\u4e00\u5c5e\u6027\u7684\u7ebf\u7a0b\u5148\u8fdb\u5165\u963b\u585e\u6001 \u5f53\u4e8b\u4ef6\u53d1\u751f\u65f6(\u7f51\u7edc\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/93345.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-12T06:08:51+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/93345.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/93345.html\",\"name\":\"\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u7ba1\u7406socket\uff0c\u5904\u7406\u5927\u6587\u4ef6\u4f20\u8f93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-12T06:08:51+00:00\",\"dateModified\":\"2026-08-12T06:08:51+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/93345.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/93345.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/93345.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u7ba1\u7406socket\uff0c\u5904\u7406\u5927\u6587\u4ef6\u4f20\u8f93\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u7ba1\u7406socket\uff0c\u5904\u7406\u5927\u6587\u4ef6\u4f20\u8f93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/93345.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u7ba1\u7406socket\uff0c\u5904\u7406\u5927\u6587\u4ef6\u4f20\u8f93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u672c\u6b21\u9879\u76ee\u4e3aQt\u804a\u5929\u5ba4\u7b2c\u4e09\u6b21\u5f00\u53d1\u7684\u7ecf\u9a8c\u603b\u7ed3 \u9879\u76ee\u5730\u5740&#xff1a; https:\/\/gitee.com\/how-to-name\/qt---simple-online-chat-room GitHub - RH211-sys\/qt---simple-online-chat-room \u00b7 GitHub \u5feb\u901f\u7406\u89e3\u4e8b\u4ef6\u5faa\u73af \u53ef\u4ee5\u501f\u52a9epoll\u7684\u6267\u884c\u8fc7\u7a0b\u6765\u5feb\u901f\u7406\u89e3\u4e8b\u4ef6\u5faa\u73af\u673a\u5236&#xff0c;\u5176\u5b9e\u5c31\u662f\u5982\u4e0b&#xff1a; \u62e5\u6709\u4e8b\u4ef6\u5faa\u73af\u8fd9\u4e00\u5c5e\u6027\u7684\u7ebf\u7a0b\u5148\u8fdb\u5165\u963b\u585e\u6001 \u5f53\u4e8b\u4ef6\u53d1\u751f\u65f6(\u7f51\u7edc","og_url":"https:\/\/www.wsisp.com\/helps\/93345.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-12T06:08:51+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/93345.html","url":"https:\/\/www.wsisp.com\/helps\/93345.html","name":"\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u7ba1\u7406socket\uff0c\u5904\u7406\u5927\u6587\u4ef6\u4f20\u8f93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-12T06:08:51+00:00","dateModified":"2026-08-12T06:08:51+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/93345.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/93345.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/93345.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528\u4e8b\u4ef6\u5faa\u73af\u7ba1\u7406socket\uff0c\u5904\u7406\u5927\u6587\u4ef6\u4f20\u8f93"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/93345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=93345"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/93345\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=93345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=93345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=93345"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=93345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}