{"id":125536,"date":"2020-06-22T23:07:24","date_gmt":"2020-06-22T15:07:24","guid":{"rendered":"http:\/\/4563.org\/?p=125536"},"modified":"2020-06-22T23:07:24","modified_gmt":"2020-06-22T15:07:24","slug":"java-web-%e5%8f%af%e4%bb%a5%e9%ab%98%e5%b9%b6%e5%8f%91%e6%94%af%e6%8c%81%e5%8e%9f%e7%94%9f-tcp-socket-%e5%90%97","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=125536","title":{"rendered":"Java web \u53ef\u4ee5\u9ad8\u5e76\u53d1\u652f\u6301\u539f\u751f tcp socket \u5417"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Java web \u53ef\u4ee5\u9ad8\u5e76\u53d1\u652f\u6301\u539f\u751f tcp socket \u5417               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lbmjsls1 <\/span>  <span><i><\/i> 9<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u573a\u666f\uff1a<\/p>\n<p>java \u6e38\u620f\u670d\u52a1\u5668\uff0c\u539f\u751f socket \u901a\u4fe1<\/p>\n<p>\u540e\u53f0 web \u670d\u52a1\u5668\uff0cphp<\/p>\n<p>\u9700\u6c42\uff1a<\/p>\n<p>\u80fd\u5426\u628a\u8fd9\u4e24\u4e2a\u670d\u52a1\u5668\u5408\u5e76\u5230\u4e00\u8d77<\/p>\n<p>\u5176\u4ed6\u731c\u60f3\uff1a<\/p>\n<p>\u6bd4\u5982\u539f\u6765\u7684\u5fae\u4fe1\u6216\u662f qq\uff0c\u6709\u624b\u673a\u7aef\uff0cpc \u7aef\uff0cweb \u7aef\uff0c\u670d\u52a1\u7aef\u662f\u5982\u4f55\u67b6\u6784\u53ef\u4ee5\u8ba9\u8fd9\u4e09\u7aef\u901a\u4fe1\u7684<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>15<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"2153108\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : watzds <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Java web \u91cc\u4e5f\u53ef\u4ee5\u52a0 socket \u5904\u7406\u554a\uff0c\u6216\u8005\u52a0 netty \u90fd\u884c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153109\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             socket \u662f\u4f9d\u8d56\u670d\u52a1\u7aef\u7a0b\u5e8f\u7684\uff0cweb \u7aef\u7684\u90a3\u4e2a websocket \u662f\u591a\u4e86\u4fe1\u606f\u5934\u7684\u3002<br \/>\u4e09\u7aef\u901a\u4fe1\u6700\u7ec8\u90fd\u662f\u8f6c\u53d1\u5b9e\u73b0\uff0c\u5e76\u975e\u90fd\u76f4\u63a5\u7528\u5728\u540c\u4e00\u4e2a\u96c6\u7fa4\u91cc\u7684\u540c\u4e00\u5957\u4ee3\u7801\u903b\u8f91                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153110\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : lbmjsls1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @watzds <br \/>@opengps <\/p>\n<p>\u8981\u662f\u5b9e\u73b0\u7684\u8bdd\uff0c\u80af\u5b9a\u662f\u628a jar \u5305\u653e\u5230 tomcat \u4e2d\u5427\uff1f\u90a3\u610f\u601d\u662f tomcat \u4f1a\u628a\u6211\u7684 jar \u5305\u8fd0\u884c\u8d77\u6765\uff0c\u5c31\u50cf java \u8fd0\u884c\u8d77\u6765\u4e00\u6837\u3002\u81f3\u4e8e\u8fd0\u884c\u8d77\u6765\u540e\u6211\u5982\u4f55\u5b9e\u73b0\uff0c\u5c31\u968f\u610f\u4e86\u662f\u5427                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153111\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : cnzjl <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u5408\u5230\u4e00\u8d77,\u6bd4\u5982 WEB \u5f00\u53d1\u4f7f\u7528 SpringBoot,\u7136\u540e socket \u4f7f\u7528 Netty                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153112\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Seney <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e3a\u4ec0\u4e48\u4e0d\u7528 netty \u5462 \u5c24\u5176\u662f\u6e38\u620f\u670d\u52a1\u5668\u5bf9\u7f51\u7edc\u8981\u6c42\u86ee\u9ad8\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153113\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u554a\uff0cSpring \u5df2\u7ecf\u652f\u6301 RSocket \u89c4\u8303\uff0c\u652f\u6301 TCP\uff0cWebsocket \u7b49\u534f\u8bae\u3002\u6e38\u620f\u5f00\u53d1\u5c31\u66f4\u9002\u5408 RSocket \u8fd9\u79cd\u534f\u8bae\u4e86\u3002<\/p>\n<p>eg. https:\/\/github.com\/hantsy\/rsocket-sample\/tree\/master\/crud<\/p>\n<p>\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cclient \u4e0e server \u4e4b\u95f4\u4f7f\u7528 tcp \u901a\u8baf\uff0c\u4e3a\u4e86\u65b9\u4fbf\u6d4b\u8bd5\uff0cclient \u540c\u65f6\u66b4\u9732\u4e86\u57fa\u4e8e HTTP \u7684 REST API \u7ed9\u5916\u90e8\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153114\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u76f8\u5e94\u7684\u6587\u7ae0\uff0chttps:\/\/medium.com\/@hantsy\/building-a-crud-application-with-rsocket-and-spring-936570c72467                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153115\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Amance <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             rpc \u901a\u4fe1\u5c31\u884c\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153116\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hantsy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @cnzjl <br \/>@Seney <\/p>\n<p>Spring Boot \u6574\u4e2a Webflux \u4f53\u7cfb\uff0c\u9ed8\u8ba4\u5c31\u662f\u7528 Netty \uff08\u4e5f\u53ef\u4ee5\u6362\u5176\u5b83\u7684\u670d\u52a1\u5668\uff09\u8fd0\u884c\uff0c\u5305\u542b\u4e0a\u9762\u8bf4\u7684 RSocket \u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153117\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : RJH <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528 MQ \u6216\u8005\u5171\u4eab\u6570\u636e\u5e93\u6765\u5b9e\u73b0\u4e09\u7aef\u901a\u4fe1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153118\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : opengps <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @lbmjsls1 \u521a\u624d\u7406\u89e3\u53c9\u6279\u4e86\uff0c\u6211\u4ee5\u4e3a\u4f60\u8bf4\u7684 web \u662f\u6d4f\u89c8\u5668\u7aef\uff0c\u770b\u4f60\u540e\u6765\u610f\u601d\u5e94\u5f53\u662f\u670d\u52a1\u5668\u7aef\u7684 web\uff0c\u90a3\u5c31\u90fd\u53ef\u4ee5\u7528 socket \u5f00\u53d1\u4e86\uff0c\u4f60\u53ef\u4ee5\u7528\u540c\u6837\u903b\u8f91\u7684 socket \u6838\u5fc3\u8fdb\u884c\u4e0d\u540c\u4f4d\u7f6e\u7684\u6258\u7ba1\u8f6c\u53d1\u5b9e\u73b0\uff0c\u5177\u4f53\u5b9e\u73b0\u65b9\u5f0f\u5c31\u4e0d\u7528\u591a\u8bf4\u4e86\uff0c\u5b8c\u5168\u7531\u4f60\u81ea\u5df1\u8bbe\u8ba1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153119\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : taogen <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Web server \u662f\u5e2e\u4f60\u5c06 TCP messages \u8f6c\u6362\u4e3a HTTP messages\uff0c\u5e95\u5c42\u8fd8\u662f socket \u901a\u4fe1\u3002<br \/>\u539f\u751f\u7684 socket \u901a\u4fe1\u76f4\u63a5\u5199\u4e2a Java \u7a0b\u5e8f\uff0c\u521b\u5efa socket\uff0c\u76d1\u542c\u7aef\u53e3\uff0c\u5904\u7406\u8bf7\u6c42\u5c31\u884c\u4e86\u3002<br \/>\u4e24\u4e2a\u5e94\u7528\u53ef\u4ee5\u5408\u5e76\u5230\u4e00\u53f0\u670d\u52a1\u5668\uff0c\u53ea\u8981\u670d\u52a1\u5668\u7684\u8d44\u6e90\u5403\u5f97\u6d88\u5c31\u884c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153120\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sagaxu <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             Java web \u8ddf\u666e\u901a Java \u6ca1\u6709\u533a\u522b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153121\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : micolore <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u670d\u52a1\u5668\u9ad8\u5e76\u53d1\u5fc5\u7136\u8981\u7528\u5230 nio\uff0cnetty \u662f\u9996\u9009\uff0c\u81f3\u4e8e\u600e\u4e48\u7ed3\u5408\uff0c\u8981\u770b\u4f60\u4eec\u7684\u7cfb\u7edf\u67b6\u6784\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"2153122\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jimrok <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ea\u8981\u4e0d\u662f raw socket\uff0cjava \u662f\u53ef\u4ee5\u641e\u7684\u3002raw socket \u5199 ping \u8fd9\u79cd\u4ee3\u7801\u9700\u8981\u53d1 icmp \u7684\u5305\uff0cjava \u5c31\u641e\u4e0d\u6765\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Java web \u53ef\u4ee5\u9ad8\u5e76\u53d1\u652f\u6301\u539f&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/125536"}],"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=125536"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/125536\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=125536"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=125536"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=125536"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}