{"id":1747,"date":"2018-10-18T19:32:34","date_gmt":"2018-10-18T11:32:34","guid":{"rendered":"https:\/\/damogame.cn:15443\/wordpress\/?p=1747"},"modified":"2018-10-25T09:54:10","modified_gmt":"2018-10-25T01:54:10","slug":"%e5%88%86%e5%b8%83%e5%bc%8f%e6%a8%a1%e5%bc%8f%e4%b9%8bbroker%e6%a8%a1%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/i007.cc\/wordpress\/archives\/1747","title":{"rendered":"\u5206\u5e03\u5f0f\u6a21\u5f0f\u4e4bBroker\u6a21\u5f0f"},"content":{"rendered":"<div class=\"postBody\">\n<div id=\"cnblogs_post_body\" class=\"blogpost-body\">\n<p class=\"p0\">\u5f15\u5165\u4e00\u4e2aBroker\u7ec4\u4ef6\uff0c\u89e3\u8026\u5ba2\u6237\u7aef\u548c\u670d\u52a1\u7aef\u3002\u670d\u52a1\u7aef\u6ce8\u518c\u81ea\u5df1\u5230Broker\uff0c\u901a\u8fc7\u66b4\u9732\u63a5\u53e3\u7684\u65b9\u5f0f\u5141\u8bb8\u5ba2\u6237\u7aef\u63a5\u5165\u670d\u52a1\u3002\u5ba2\u6237\u7aef\u662f\u901a\u8fc7Broker\u53d1\u9001\u8bf7\u6c42\u7684\uff0cBroker\u8f6c\u53d1\u8bf7\u6c42\u9053\u670d\u52a1\u7aef\uff0c\u5e76\u5c06\u8bf7\u6c42\u7684\u7ed3\u679c\u6216\u5f02\u5e38\u56de\u53d1\u7ed9\u5ba2\u6237\u7aef\u3002\u901a\u8fc7\u4f7f\u7528Broker\u6a21\u5f0f\uff0c\u5e94\u7528\u53ef\u4ee5\u901a\u8fc7\u53d1\u9001\u6d88\u606f\u8bbf\u95ee\u8fdc\u7a0b\u7684\u670d\u52a1\u3002<\/p>\n<p class=\"p0\">\u8fd9\u4e00\u67b6\u6784\u6a21\u5f0f\u5141\u8bb8\u52a8\u6001\u7684\u6539\u53d8\u3001\u6dfb\u52a0\u3001\u5220\u9664\u670d\u52a1\u7aef\uff0c\u4ece\u5ba2\u6237\u7aef\u7684\u89d2\u5ea6\uff0c\u8fd9\u4e9b\u90fd\u662f\u900f\u660e\u7684\u3002<\/p>\n<p>\u7ed3\u6784\uff1a<\/p>\n<p class=\"p0\">Broker\u6a21\u5f0f\u5b9a\u4e49\u4e866\u4e2d\u7c7b\uff1aClient\uff0cServer\uff0cClient_Proxy\uff0cServer_Proxy\uff0cBroker\uff0cBridge\u3002<\/p>\n<h3><a name=\"t4\"><\/a>Server\uff1a<\/h3>\n<p class=\"p0\">l\u00a0\u8d23\u4efb\uff1a\u5904\u7406\u7279\u5b9a\u9886\u57df\u7684\u95ee\u9898\uff0c\u5b9e\u73b0\u670d\u52a1\u7684\u7ec6\u8282\uff0c\u6ce8\u518c\u81ea\u5df1\u5230Broker\uff0c\u5904\u7406\u8bf7\u6c42\u5e76\u8fd4\u56de\u7ed3\u679c\u6216\u5f02\u5e38\u3002<\/p>\n<p class=\"p0\">l\u00a0\u534f\u4f5c\u7c7b\uff1aServer_Proxy\uff0cBroker<\/p>\n<h3><a name=\"t5\"><\/a>Client\uff1a<\/h3>\n<p class=\"p0\">Client\u662f\u9700\u8981\u8bbf\u95ee\u8fdc\u7a0b\u670d\u52a1\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4e3a\u6b64\uff0cClient\u53d1\u9001\u8bf7\u6c42\u5230Broker\uff0c\u5e76\u4eceBroker\u4e0a\u63a5\u6536\u54cd\u5e94\u6216\u5f02\u5e38\u3002Client\u548cServer\u53ea\u662f\u903b\u8f91\u4e0a\u76f8\u5173\u800c\u5df2\uff0c\u5b9e\u9645\u4e0aClient\u5e76\u4e0d\u77e5\u9053Server\u7684\u786e\u5207\u4f4d\u7f6e\u3002<\/p>\n<p class=\"p0\">l\u00a0\u8d23\u4efb\uff1a1.\u00a0\u5b9e\u73b0\u7528\u6237\u7aef\u529f\u80fd\uff0c2.\u00a0\u53d1\u9001\u8bf7\u6c42\u5230Broker\uff0c3.\u00a0\u63a5\u6536\u76f8\u5e94\u548c\u5f02\u5e38\u3002<\/p>\n<p class=\"p0\">l\u00a0\u534f\u4f5c\u7c7b\uff1aBroker\uff0cClient_Proxy<\/p>\n<h3><a name=\"t6\"><\/a>Broker\uff1a<\/h3>\n<p class=\"p0\">Broker\u53ef\u4ee5\u88ab\u770b\u6210\u6d88\u606f\u8f6c\u53d1\u5668\u3002Broker\u4e5f\u8d1f\u8d23\u4e00\u4e9b\u63a7\u5236\u548c\u7ba1\u7406\u64cd\u4f5c\u3002\u5b83\u80fd\u591f\u5b9a\u4f4d\u670d\u52a1\u7aef\u7684\u4f4d\u7f6e\uff0c\u82e5\u53d1\u751f\u5f02\u5e38\uff0c\u80fd\u591f\u5c06\u5f02\u5e38\u6355\u83b7\u4f20\u7ed9Client\u3002Broker\u9700\u8981\u63d0\u4f9b\u6ce8\u518c\u670d\u52a1\u7684\u63a5\u53e3\u7ed9Server\u3002\u5982\u679c\u8bf7\u6c42\u6765\u81ea\u5176\u4ed6\u7684Broker\uff0c\u672c\u5730\u7684Broker\u9700\u8981\u8f6c\u53d1\u8bf7\u6c42\u5e76\u6700\u7ec8\u5c06\u7ed3\u679c\u6216\u5f02\u5e38\u56de\u5e94\u7ed9\u76f8\u5e94\u7684\u8fdc\u7a0bBroker\u3002Broker\u63d0\u4f9b\u7684\u670d\u52a1\u548cname\u00a0service\u975e\u5e38\u76f8\u50cf\uff08\u5982DNS\u3001LDAP\uff09\u3002<\/p>\n<p class=\"p0\">l\u00a0\u8d23\u4efb\uff1a1.\u00a0\u6ce8\u518c\u670d\u52a1\u30022.\u00a0\u63d0\u4f9b\u670d\u52a1API\u30023.\u00a0\u8f6c\u53d1\u6d88\u606f\u30024.\u00a0\u5bb9\u9519\u5904\u7406\u30025.\u00a0\u4e0e\u5176\u4ed6Broker\u7684\u4ea4\u4e92\u30026\u3002\u00a0\u5b9a\u4f4d\u670d\u52a1\u3002<\/p>\n<p class=\"p0\">l\u00a0\u534f\u4f5c\u7c7b\uff1aClient_Proxy,Server_Proxy,Bridge<\/p>\n<h3><a name=\"t7\"><\/a>Client_Proxy\uff1a<\/h3>\n<p class=\"p0\">\u8fde\u7cfbClient\u548cBroker\uff0c\u8fd9\u4e00\u5c42\u4fdd\u8bc1\u4e86\u901a\u8baf\u7684\u900f\u660e\u6027\uff0c\u4f7fClient\u8c03\u7528\u8fdc\u7a0b\u670d\u52a1\u5c31\u50cf\u8c03\u7528\u672c\u5730\u7684\u670d\u52a1\u4e00\u6837\u3002<\/p>\n<p class=\"p0\">l\u00a0\u8d23\u4efb\uff1a1.\u00a0\u5c01\u88c5\u7279\u5b9a\u7684\u7cfb\u7edf\u8c03\u7528\u30022.\u00a0\u5c01\u88c5\u901a\u8baf\u7684\u53c2\u6570\u3001\u63a7\u5236\u4fe1\u606f\u7b49\u3002<\/p>\n<p class=\"p0\">l\u00a0\u534f\u4f5c\u7c7b\uff1aClient,Broker\u3002<\/p>\n<p>Server_Proxy\uff1a<\/p>\n<p class=\"p0\">Server_proxy\u662f\u4e0eClient_Proxy\u76f8\u5bf9\u5e94\u7684\uff0c\u5b83\u63a5\u53d7\u8bf7\u6c42\uff0c\u89e3\u5305\u6d88\u606f\uff0c\u89e3\u6790\u51fa\u53c2\u6570\u5e76\u8c03\u7528\u670d\u52a1\u7684\u5b9e\u73b0\u63a5\u53e3\u3002<\/p>\n<p class=\"p0\">l\u00a0\u8d23\u4efb\uff1a1.\u00a0\u5c01\u88c5\u7279\u5b9a\u7684\u7cfb\u7edf\u8c03\u7528\u30022.\u00a0\u5c01\u88c5\u901a\u8baf\u7684\u53c2\u6570\u3001\u63a7\u5236\u4fe1\u606f\u7b49\u30023.\u00a0\u8c03\u7528server\u7684\u670d\u52a1\u63a5\u53e3\u3002<\/p>\n<p class=\"p0\">l\u00a0\u534f\u4f5c\u7c7b\uff1aServer,Broker\u3002<\/p>\n<h3><a name=\"t8\"><\/a>Bridge\uff1a<\/h3>\n<p class=\"p0\">Bridge\u7528\u6765\u8fde\u63a5\u5404\u4e2aBroker\uff0c\u4e00\u822c\u8fd9\u4e2a\u7ec4\u4ef6\u662f\u53ef\u9009\u7684\u3002\u5f53\u7cfb\u7edf\u662f\u53d1\u6742\u7684\u7f51\u7edc\u7ec4\u6210\u65f6\uff0c\u6709\u53ef\u80fd\u9700\u8981\u8fd9\u4e00\u89d2\u8272\u3002<\/p>\n<p class=\"p0\">l\u00a0\u8d23\u4efb\uff1a1.\u00a0\u5c01\u88c5\u7279\u5b9a\u7684\u7f51\u7edc\u7279\u6027\u30022.\u00a0\u4f20\u9012Broker\u4e4b\u95f4\u7684\u901a\u8baf\u3002<\/p>\n<p class=\"p0\">l\u00a0\u534f\u4f5c\u7c7b\uff1aBroker\u3002<\/p>\n<h2><a name=\"t9\"><\/a>\u5e94\u7528\u573a\u666f\u4e00\uff1a<\/h2>\n<p class=\"p0\">\u76f4\u63a5\u901a\u8baf\u65b9\u5f0f\u3002Client\u548cServer\u76f8\u4e92\u7406\u89e3\u4ed6\u4eec\u4e4b\u95f4\u7684\u901a\u8baf\u534f\u8bae\u3002Broker\u4e3b\u8981\u5b8c\u6210Client\u548cServer\u4e4b\u95f4\u7684\u63e1\u624b\u3002\u4e4b\u540e\u6240\u6709\u7684\u6d88\u606f\u3001\u5f02\u5e38\u90fd\u662f\u7531Client\u4e0eServer\u76f4\u63a5\u4ea4\u4e92\u3002\uff08\u60f3\u8c61DNS\uff09\u3002\u7b80\u5355\u5bf9\u8c61\u4ea4\u4e92\u5982\u56fe\uff1a<\/p>\n<p class=\"p0\"><a href=\"http:\/\/blog.chinaunix.net\/attachment\/201101\/16\/23093301_1295175004flGk.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/blog.chinaunix.net\/attachment\/201101\/16\/23093301_1295175004flGk.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<h2><a name=\"t10\"><\/a>\u5e94\u7528\u573a\u666f\u4e8c\uff1a<\/h2>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p class=\"p0\">l\u00a0Broker\u542f\u52a8\uff0c\u5b8c\u6210\u81ea\u8eab\u7684\u521d\u59cb\u5316\uff0c\u4e4b\u540e\u8fdb\u5165\u4e8b\u4ef6\u5faa\u73af\uff0c\u7b49\u5f85\u6d88\u606f\u5230\u6765\u3002<\/p>\n<p class=\"p0\">l\u00a0Server\u542f\u52a8\uff0c\u9996\u5148\u6267\u884c\u81ea\u8eab\u7684\u521d\u59cb\u5316\uff0c\u7136\u540e\u6ce8\u518c\u81ea\u5df1\u5230Broker\u3002<\/p>\n<p class=\"p0\">l\u00a0Broker\u63a5\u6536Server\u7684\u6ce8\u518c\u8bf7\u6c42\uff0c\u5c06\u5176\u52a0\u5165\u5230\u53ef\u4f7f\u7528\u670d\u52a1\u7684\u5217\u8868\uff0c\u5e76\u56de\u5e94Ack\u7ed9Server\u3002<\/p>\n<p class=\"p0\">l\u00a0Server\u63a5\u6536Ack\uff0c\u8fdb\u5165\u4e8b\u4ef6\u76d1\u542c\u5faa\u73af\uff0c\u7b49\u5f85\u6d88\u606f\u5230\u6765\u3002<\/p>\n<p class=\"p0\">l\u00a0Client\u8c03\u7528\u8fdc\u7a0b\u670d\u52a1\u5bf9\u8c61\u7684\u65b9\u6cd5\uff0cClient_Proxy\u5c01\u88c5\u6d88\u606f\u8bf7\u5176\u53d1\u9001\u7ed9Broker\u3002<\/p>\n<p class=\"p0\">l\u00a0Broker\u67e5\u8be2\u53ef\u4f7f\u7528\u7684Server\uff0c\u5c06\u8bf7\u6c42\u8f6c\u53d1\u7ed9Server\u3002<\/p>\n<p class=\"p0\">l\u00a0Server_Proxy\u89e3\u6790\u6d88\u606f\uff0c\u5206\u79bb\u51fa\u53c2\u6570\u548c\u63a7\u5236\u4fe1\u606f\uff0c\u5e76\u8c03\u7528\u7279\u5b9a\u7684Server\u5b9e\u73b0\u63a5\u53e3\u3002Server\u5904\u7406\u5b8c\u7684\u7ed3\u679c\u901a\u8fc7Server_proxy\u5c01\u88c5\u6210\u6d88\u606f\u8f6c\u53d1\u5230Server\u3002<\/p>\n<p class=\"p0\">l\u00a0Broker\u5c06\u76f8\u5e94\u6d88\u606f\u8f6c\u53d1\u7ed9\u6b63\u786e\u7684Client_Proxy\uff0cClient\u53d7\u5230\u54cd\u5e94\u7ee7\u7eed\u5176\u4ed6\u903b\u8f91\u3002<\/p>\n<p class=\"p0\">\u7b80\u5355\u5bf9\u8c61\u4ea4\u4e92\u5982\u56fe\uff1a<\/p>\n<p class=\"p0\"><a href=\"http:\/\/blog.chinaunix.net\/attachment\/201101\/16\/23093301_12951751188mhH.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/blog.chinaunix.net\/attachment\/201101\/16\/23093301_12951751188mhH.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<h2><a name=\"t11\"><\/a>\u5e94\u7528\u573a\u666f\u4e09\uff1a<\/h2>\n<p class=\"p0\">l\u00a0Broker\u00a0A\u63a5\u6536\u5230\u8bf7\u6c42\uff0c\u4ea4\u7531Server\u5904\u7406\uff0c\u4f46\u662f\u53d1\u73b0\u8be5Server\u4f4d\u4e8e\u5176\u4ed6\u7684\u7f51\u7edc\u8282\u70b9\u3002<\/p>\n<p class=\"p0\">l\u00a0Broker\u00a0A\u5c06\u8bf7\u6c42\u8f6c\u53d1\u7ed9Bridge A\uff0cBridge\u00a0A\u5c06\u8bf7\u6c42\u8fdb\u884c\u5fc5\u8981\u7684\u683c\u5f0f\u5316\uff0c\u4f20\u9001\u7ed9Bridge\u00a0B\u3002<\/p>\n<p class=\"p0\">l\u00a0Bridge\u00a0B\u5c06\u8bf7\u6c42\u8fdb\u884c\u5fc5\u8981\u7684\u683c\u5f0f\u5316\uff0c\u8f6c\u5316\u6210Broker\u00a0B\u53ef\u4ee5\u7406\u89e3\u7684\u683c\u5f0f\uff0c\u5e76\u8f6c\u53d1\u7ed9Broker\u00a0B\u3002Broker\u00a0B\u6267\u884c\u573a\u666f\u4e8c\u4e2d\u7684\u8fc7\u7a0b\uff0c\u5904\u7406\u7684\u7ed3\u679c\u6309\u5982\u4e0a\u9006\u5e8f\u8fd4\u56de\u3002<\/p>\n<p class=\"p0\">\u7b80\u5355\u5bf9\u8c61\u4ea4\u4e92\u5982\u56fe\uff1a<\/p>\n<p class=\"p0\"><a href=\"http:\/\/blog.chinaunix.net\/attachment\/201101\/16\/23093301_12951751690Sws.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/blog.chinaunix.net\/attachment\/201101\/16\/23093301_12951751690Sws.jpg\" alt=\"\" border=\"0\" \/><\/a><\/p>\n<h2><a name=\"t12\"><\/a>\u90e8\u7f72\u793a\u610f\u56fe\uff1a<\/h2>\n<p class=\"p0\"><strong><a href=\"http:\/\/blog.chinaunix.net\/attachment\/201101\/16\/23093301_1295175265jHj8.jpg\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/blog.chinaunix.net\/attachment\/201101\/16\/23093301_1295175265jHj8.jpg\" alt=\"\" border=\"0\" \/><\/a><\/strong><\/p>\n<p class=\"p0\"><strong>\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h2><a name=\"t13\"><\/a>\u603b\u7ed3\uff1a<\/h2>\n<div><\/div>\n<h3><a name=\"t14\"><\/a>u\u00a0\u4f18\u70b9\uff1a<\/h3>\n<p class=\"p0\">1.\u00a0\u670d\u52a1\u7684\u4f4d\u7f6e\u900f\u660e\u6027\u3002<\/p>\n<p class=\"p0\">2.\u00a0\u7ec4\u4ef6\u7684\u53ef\u53d8\u6027\u53ca\u6269\u5c55\u6027\u3002\u7531\u4e8eServer\u662f\u6ce8\u518c\u5230Broker\u4e0a\u7684\uff0c\u6240\u4ee5Server\u53ef\u4ee5\u52a8\u6001\u7684\u589e\u52a0\u3001\u5220\u9664\u3001\u6539\u53d8\u3002<\/p>\n<p class=\"p0\">3.\u00a0Broker\u4e4b\u95f4\u53ef\u4ea4\u4e92\u3002<\/p>\n<p class=\"p0\">4.\u00a0\u53ef\u91cd\u7528\u6027\u3002<\/p>\n<p class=\"p0\">5.\u00a0\u7531\u4e8e\u7ec4\u4ef6\u7684\u8026\u5408\u5ea6\u8f83\u5c0f\uff0c\u8c03\u8bd5\u548c<a class=\"replace_word\" title=\"\u8f6f\u4ef6\u6d4b\u8bd5\u77e5\u8bc6\u5e93\" href=\"http:\/\/lib.csdn.net\/base\/softwaretest\" target=\"_blank\" rel=\"noopener\">\u6d4b\u8bd5<\/a>\u7684\u5de5\u4f5c\u4e5f\u662f\u53ef\u63a7\u7684\u3002<\/p>\n<h3><a name=\"t15\"><\/a>u\u00a0\u7f3a\u70b9:<\/h3>\n<p class=\"p0\">1.\u00a0\u6548\u7387\uff1b\u589e\u52a0\u4e86\u4e00\u5c42Broker\u7684\u6d88\u606f\u8f6c\u53d1\uff0c\u6548\u7387\u6709\u6240\u964d\u4f4e\u3002<\/p>\n<p class=\"p0\">2.\u00a0\u5bb9\u9519\u80fd\u529b\u5fc5\u987b\u8981\u7279\u522b\u8003\u8651\u3002<\/p>\n<p class=\"p0\">3.\u00a0\u8c03\u8bd5\u548c\u6d4b\u8bd5\u7684\u5de5\u4f5c\u52a0\u5927\u3002<\/p>\n<\/div>\n<div class=\"clear\"><\/div>\n<div id=\"blog_post_info_block\">\n<div id=\"BlogPostCategory\">\u5206\u7c7b:\u00a0<a href=\"https:\/\/www.cnblogs.com\/kisf\/category\/942909.html\" target=\"_blank\" rel=\"noopener\">\u8f6f\u4ef6\u8bbe\u8ba1<\/a><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5f15\u5165\u4e00\u4e2aBroker\u7ec4\u4ef6\uff0c\u89e3\u8026\u5ba2\u6237\u7aef\u548c\u670d<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[],"tags":[119],"class_list":["post-1747","post","type-post","status-publish","format-standard","hentry","tag-03-"],"_links":{"self":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/1747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/comments?post=1747"}],"version-history":[{"count":0,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/posts\/1747\/revisions"}],"wp:attachment":[{"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/media?parent=1747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/categories?post=1747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/i007.cc\/wordpress\/wp-json\/wp\/v2\/tags?post=1747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}