{"id":208277,"date":"2020-01-09T06:22:00","date_gmt":"2020-01-08T22:22:00","guid":{"rendered":"http:\/\/itteacheritfreelance.hk\/test\/wordpress\/?guid=99b67834632a4d858af078f69825be86"},"modified":"2020-01-09T06:22:00","modified_gmt":"2020-01-08T22:22:00","slug":"socket-programming-in-java-a-tutorial-2","status":"publish","type":"post","link":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2020\/01\/09\/socket-programming-in-java-a-tutorial-2\/","title":{"rendered":"Socket programming in Java: A tutorial"},"content":{"rendered":"<article>\n<section class=\"page\">\n<blockquote><p>This tutorial is an introduction to socket programming Java, starting with a simple client-server example demonstrating the basic features of Java I\/O.\u00a0 You&#8217;ll be introduced to both the original\u00a0<code>java.io<\/code>\u00a0package and NIO, the non-blocking I\/O (<code>java.nio<\/code>) APIs introduced in Java 1.4. Finally, you&#8217;ll see an example that demonstrates Java networking as implemented from Java 7 forward, in NIO.2.<\/p><\/blockquote>\n<p>Socket programming boils down to two systems communicating with one another. Generally, network communication comes in two flavors: Transport Control Protocol (TCP) and User Datagram Protocol (UDP). TCP and UDP are used for different purposes and both have unique constraints:<\/p>\n<p class=\"jumpTag\"><a href=\"https:\/\/www.javaworld.com\/article\/2853780\/socket-programming-for-scalable-systems.html#jump\">To read this article in full, please click here<\/a><\/p>\n<\/section>\n<\/article>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial is an introduction to socket programming Java, starting with a simple client-server example demonstrating the basic features of Java I\/O.\u00a0 You&#8217;ll be introduced to both the original\u00a0java.io\u00a0package and NIO, the non-blocking I\/O (java.ni&#8230; <a href=\"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/2020\/01\/09\/socket-programming-in-java-a-tutorial-2\/\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":506,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"slim_seo":[],"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[2,315,7],"tags":[398,402,397,414,413,410,409,407,408,406,399,400,394,318,558,560,555,561,566,553,554,586,585,563,562,567,524,232,10,401,396,381,403,412,411,395,405,404,457,454,320,319,316],"jetpack_publicize_connections":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7prtj-Sbj","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/208277"}],"collection":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/users\/506"}],"replies":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/comments?post=208277"}],"version-history":[{"count":2,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/208277\/revisions"}],"predecessor-version":[{"id":209969,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/posts\/208277\/revisions\/209969"}],"wp:attachment":[{"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/media?parent=208277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/categories?post=208277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-json\/wp\/v2\/tags?post=208277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}