{"id":1613,"date":"2014-12-30T15:16:11","date_gmt":"2014-12-30T07:16:11","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=1613"},"modified":"2014-12-30T15:42:28","modified_gmt":"2014-12-30T07:42:28","slug":"qsocket%e8%ae%be%e8%ae%a1%e7%9a%84%e4%b8%80%e4%ba%9b%e8%ae%a8%e8%ae%ba%e8%a7%84%e5%88%92","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=1613","title":{"rendered":"QSocket\u8bbe\u8ba1\u7684\u4e00\u4e9b\u6784\u60f3\u8ba8\u8bba"},"content":{"rendered":"<p>\u8ba8\u8bba\u65f6\u95f4\uff1a2014\u5e7412\u670829\u65e5<\/p>\n<p>\u8ba8\u8bba\u8303\u56f4\uff1aQDAC\u5b98\u65b9QQ\u7fa4<\/p>\n<p>\u8ba8\u8bba\u5185\u5bb9\uff1a<\/p>\n<p>\uff081\uff09\u3001QSocket\u5c06\u5305\u542b\u5355\u8fde\u63a5\u591a\u4f1a\u8bdd\u5e76\u53d1\u7684\u652f\u6301\u3002\u4e00\u4e2a\u5ba2\u6237\u7aef\u4e0e\u670d\u52a1\u5668\u7aef\u53ea\u6709\u4e00\u4e2a\u8fde\u63a5\uff0c\u4f46\u8fd9\u4e2a\u8fde\u63a5\u91c7\u7528\u67d0\u4e9b\u6280\u672f\u624b\u6bb5\uff0c\u53ef\u4ee5\u5e76\u884c\u7684\u53d1\u9001\u591a\u4e2a\u4f1a\u8bdd\u3002\u4f1a\u8bdd\u4e4b\u95f4\u901a\u8fc7\u4f18\u5148\u7ea7\u63a7\u5236\uff0c\u9ad8\u4f18\u5148\u7ea7\u7684\u4f1a\u8bdd\u4f1a\u5f97\u5230\u66f4\u9ad8\u7684\u53d1\u9001\u673a\u7387\uff0c\u800c\u4f4e\u4f18\u5148\u7ea7\u7684\u4f1a\u8bdd\u53d1\u9001\u673a\u7387\u53ea\u662f\u66f4\u5c0f\u3002\u540c\u65f6\uff0c\u91c7\u7528\u5e27\u63d2\u5165\u53ca\u5408\u5e76\u6280\u672f\uff0c\u4fdd\u8bc1\u4e00\u4e2a\u957f\u65f6\u95f4\u4f1a\u8bdd\u4e0d\u4f1a\u9020\u6210\u5176\u5b83\u4f1a\u8bdd\u7684\u9700\u8981\u7b49\u5f85\u957f\u65f6\u95f4\u4f1a\u8bdd\u5b8c\u6210\u624d\u80fd\u53d1\u9001\uff0c\u8fd9\u6837\u53ef\u4ee5\u63d0\u9ad8\u4f4e\u4f18\u5148\u7ea7\u4f1a\u8bdd\u7684\u53d1\u9001\u901f\u5ea6\u3002\u8fd9\u91cc\u53ef\u4ee5\u4e3e\u4e2a\u4f8b\u5b50\uff1a\u6bd4\u5982\u4f60\u6b63\u5728\u4f20\u9001\u4e00\u4e2a\u5927\u6587\u4ef6\uff0c\u800c\u6b64\u65f6\uff0c\u4f20\u7edf\u7684\u65b9\u5f0f\u4e0b\uff0c\u5982\u679c\u4f60\u8981\u4f20\u9001\u4e00\u4e2a\u5176\u5b83\u6570\u636e\uff0c\u4f60\u8981\u4e48\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u8fde\u63a5\uff0c\u8981\u4e48\u5c06\u4f20\u9001\u6587\u4ef6\u7684\u4f1a\u8bdd\u4e2d\u65ad\uff0c\u7136\u540e\u5f00\u59cb\u4f20\u9001\u8981\u4f20\u9001\u7684\u6570\u636e\uff0c\u7136\u540e\u518d\u6062\u590d\u6587\u4ef6\u7684\u4f20\u9001\u3002\u800cQSocket\u4e0d\u9700\u8981\u5efa\u7acb\u65b0\u8fde\u63a5\uff0c\u800c\u662f\u5c06\u65b0\u7684\u6570\u636e\u548c\u539f\u6765\u6587\u4ef6\u4f20\u9001\u7684\u6570\u636e\u6253\u5305\u4e00\u8d77\u4f20\u9001\u5230\u8fdc\u7a0b\uff0c\u8fdc\u7a0b\u518d\u89e3\u6790\u5904\u7406\uff0c\u8fd9\u6837\u5c31\u65e2\u4e0d\u4f1a\u5f71\u54cd\u6587\u4ef6\u4f20\u9001\u4f1a\u8bdd\u7684\u6570\u636e\u4f20\u9001\uff0c\u53c8\u80fd\u53ca\u65f6\u4f20\u9001\u65b0\u7684\u4f1a\u8bdd\u6570\u636e\u3002<\/p>\n<p>\uff082\uff09\u3001QSocket\u4e2d\u4f1a\u8bdd\u53ef\u4ee5\u5206\u7ec4\uff0c\u7ec4\u5185\u7684\u4f1a\u8bdd\u5171\u4eab\u540c\u4e00\u4f18\u5148\u7ea7\uff0c\u53d1\u9001\u987a\u5e8f\u53ef\u4ee5\u662f\u4e32\u884c\uff0c\u4e5f\u53ef\u4ee5\u662f\u5e76\u884c\uff0c\u5728\u6240\u6709\u7684\u7ec4\u5185\u7684\u4f1a\u8bdd\u53d1\u9001\u5b8c\u6210\u540e\uff0c\u4f1a\u89e6\u53d1\u4e00\u4e2a\u4e8b\u4ef6\u7ed9\u4e0a\u5c42\u901a\u77e5\u3002<\/p>\n<p>\uff083\uff09\u3001QSocket\u4e2d\u7684\u4f1a\u8bdd\u53ef\u4ee5\u6ca1\u6709\u56de\u5e94\u3002\u6ca1\u6709\u56de\u5e94\u7684\u4f1a\u8bdd\u662f\u4e0d\u9700\u8981\u7b49\u5f85\u8fdc\u7a0b\u7684\u5904\u7406\u7ed3\u679c\u7684\uff0c\u4e5f\u6c38\u8fdc\u7b49\u4e0d\u5230\u7ed3\u679c\u3002<\/p>\n<p>\uff084\uff09\u3001QSocket\u9ed8\u8ba4\u5b9e\u73b0\u4e2d\u53c2\u6570\u7684\u7f16\u89e3\u7801\u4f7f\u7528MessagePack\u534f\u8bae+ZLib+AES\uff0c\u4f46\u7528\u6237\u53ef\u4ee5\u5b9e\u73b0\u81ea\u5df1\u7684\u7f16\u7801\u548c\u89e3\u7801\u5668\uff0c\u5982HTTP\u3002<\/p>\n<p>\uff085\uff09\u3001QSocket\u5728\u8fde\u63a5\u7ea7\u522b\u6536\u53d1\u7684\u662f\u539f\u751f\u6570\u636e\u6d41\uff0c\u7f16\u7801\u548c\u89e3\u7801\u90fd\u662f\u5728\u4f1a\u8bdd\u7ea7\u522b\u4e0a\u5904\u7406\u7684\u3002\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u4e24\u79cd\u6a21\u5f0f\u53ea\u80fd\u9009\u62e9\u4e00\u79cd\uff0c\u5426\u5219\uff0c\u53ef\u80fd\u9020\u6210\u6570\u636e\u6df7\u4e71\uff0c\u63a5\u6536\u7aef\u65e0\u6cd5\u6b63\u5e38\u89e3\u6790\u6570\u636e\u3002<\/p>\n<p>\uff086\uff09\u3001QSocket\u652f\u6301\u7ec4\u64ad\u548c\u5e7f\u64ad\u4f1a\u8bdd\uff0c\u7ec4\u64ad\u548c\u5e7f\u64ad\u7684\u4f1a\u8bdd\u4e0d\u652f\u6301\u63a5\u6536\u7aef\u56de\u5e94\uff08\u4e5f\u6ca1\u5fc5\u8981\uff09\u3002\u7ec4\u64ad\u65f6\uff0c\u76ee\u6807\u53ef\u4ee5\u52a0\u5165\u6216\u79bb\u5f00\u7ec4\u64ad\u7684\u5206\u7ec4\u3002<\/p>\n<p>\uff087\uff09\u3001QSocket\u652f\u6301\u7f51\u7edc\u4fe1\u53f7\u7684\u89e6\u53d1\u548c\u54cd\u5e94\u3002\u4e00\u4e2a\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5728\u4e00\u4e2a\u7ec8\u7aef\u4e0a\u89e6\u53d1\u4e00\u4e2a\u7f51\u7edc\u4fe1\u53f7\uff0c\u800c\u5bf9\u8be5\u4fe1\u53f7\u611f\u5174\u8da3\u7684\u7ec8\u7aef\u53ef\u4ee5\u53ca\u65f6\u63a5\u6536\u5230\u8be5\u4fe1\u53f7\u5e76\u8fdb\u884c\u54cd\u5e94\u5904\u7406\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4fe1\u53f7\u7684\u89e6\u53d1\u8005\u5e76\u4e0d\u5173\u5fc3\u6709\u6ca1\u6709\u4eba\u53bb\u54cd\u5e94\u4fe1\u53f7\uff0c\u5b83\u53ea\u8d1f\u8d23\u89e6\u53d1\u3002\u800c\u4fe1\u53f7\u7684\u63a5\u6536\u8005\u5bf9\u4fe1\u53f7\u8fdb\u884c\u5904\u7406\u540e\uff0c\u4e5f\u4e0d\u4f1a\u8fd4\u56de\u7ed3\u679c\u7ed9\u89e6\u53d1\u8005\u3002\u5982\u679c\u4e24\u8005\u4e4b\u95f4\u9700\u8981\u4fe1\u606f\u4f20\u9012\uff0c\u539f\u6765\u7684\u63a5\u6536\u8005\u53ef\u4ee5\u89e6\u53d1\u989d\u5916\u7684\u4fe1\u53f7\u7ed9\u539f\u6765\u7684\u53d1\u9001\u8005\uff0c\u4ece\u800c\u4ea7\u751f\u5173\u8054\u3002<\/p>\n<p>\uff088\uff09\u3001QSocket\u8ba1\u5212\u652f\u6301\u7f51\u7edc\u8d44\u6e90\u9501\u3002\u7f51\u7edc\u8d44\u6e90\u9501\u7528\u4e8e\u67d0\u4e2a\u5e94\u7528\u7ec8\u7aef\u9501\u5b9a\u67d0\u4e9b\u5904\u7406\u8d44\u6e90\uff0c\u7136\u540e\u5728\u672c\u5730\u5904\u7406\u540e\uff0c\u518d\u5c06\u5904\u7406\u7ed3\u679c\u8fd4\u56de\u5230\u8d44\u6e90\u7684\u7ba1\u7406\u7ec8\u7aef\uff0c\u6700\u7ec8\u5b9e\u73b0\u5206\u5e03\u5f0f\u5904\u7406\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8ba8\u8bba\u65f6\u95f4\uff1a2014\u5e7412\u670829\u65e5 \u8ba8\u8bba\u8303 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,9,259],"tags":[272,245],"class_list":["post-1613","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-qdac","category-qsocket-qdac","tag-272","tag-245"],"views":4602,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1613"}],"version-history":[{"count":2,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1613\/revisions"}],"predecessor-version":[{"id":1617,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/1613\/revisions\/1617"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}