{"id":210,"date":"2014-08-26T00:29:17","date_gmt":"2014-08-25T16:29:17","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=210"},"modified":"2014-08-26T00:29:17","modified_gmt":"2014-08-25T16:29:17","slug":"diocp3-%e5%85%b3%e4%ba%8etiocpconsole","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=210","title":{"rendered":"DIOCP3-\u5173\u4e8eTIOCPConsole"},"content":{"rendered":"<p>TIOCPConsole\u662f\u7ee7\u627f\u81f3TIocpTcpServer\uff0c\u505a\u4e86\u7ba1\u7406\u548c\u8c03\u7528\u7f16\u7801\u548c\u89e3\u7801\u5668\u5668\u7684\u529f\u80fd\u3002\u53ef\u4ee5\u901a\u8fc7\u5411\u4ed6\u6ce8\u518c\u7f16\u7801\u548c\u89e3\u7801\u5668\u53ef\u4ee5\u5ffd\u7565\u7c98\u5305\u7684\u95ee\u9898\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><font color=\"#ff0000\">\u8fd9\u6837\u5982\u679cTIOCPConsole\u5ba2\u6237\u7aef\u5fc5\u987b\u6309\u7167\u4e00\u5b9a\u7684\u7f16\u7801\u5668\u548c\u89e3\u7801\u5668\u7684\u534f\u8bae\u53d1\u9001\u6570\u636e\u548c\u63a5\u53d7\u6570\u636e\uff0c<\/font><\/p>\n<p>diocpCoders\u4e2d\u5df2\u7ecf\u6709\u4e86\u51e0\u79cd\u7f16\u7801\u548c\u89e3\u7801\u5668\uff0c<\/p>\n<p>\u6bd4\u8f83\u5e38\u7528\u7684TDIOCPStreamCoder<\/p>\n<p>\u4ed6\u7684\u683c\u5f0f\u662fPack_Flag + streamLen + Stream\u6570\u636e<\/p>\n<p>\u5982\u679c\u4e0d\u662f\u8fd9\u79cd\u6570\u636e\u683c\u5f0f\u7684\u8bdd\u4f1a\u88abT\u6389\u3002<\/p>\n<p>\u5176\u4ed6\u7684\u683c\u5f0f\u7684\u7f16\u7801\u5668\u4e5f\u662f\u6709\u56fa\u5b9a\u683c\u5f0f\u7684&lt;\u53ef\u4ee5\u67e5\u770b\u7f16\u7801\u5668\u4e2d\u7684\u4ee3\u7801\u770b\u5230\u5177\u4f53\u7684\u5c01\u5305\u683c\u5f0f&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TIOCPConsole\u662f\u7ee7\u627f\u81f3TIoc [&hellip;]<\/p>\n","protected":false},"author":6,"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":[43],"tags":[],"class_list":["post-210","post","type-post","status-publish","format-standard","hentry","category-diocp3"],"views":2908,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/210","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions"}],"predecessor-version":[{"id":211,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/210\/revisions\/211"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}