{"id":210459,"date":"2018-09-14T12:47:00","date_gmt":"2018-09-14T12:47:00","guid":{"rendered":"http:\/\/localhost\/wordpress\/index.php\/2018\/09\/14\/ecet-490-week-4-homework\/"},"modified":"2018-10-24T08:46:31","modified_gmt":"2018-10-24T08:46:31","slug":"ecet-490-week-4-homework","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/ecet-490-week-4-homework\/","title":{"rendered":"ECET 490  Week 4 Homework"},"content":{"rendered":"<p>2. Process 1 sends three messages successively to process 2.\tWhat is the possible order in which the messages may arrive at process 2 if\t3. In the\u00a0setSoToimeout\u00a0method for theDatagramSocket\u00a0(or other classes), what happens if the timeout period is set to 0? Does it mean that the timeout happens immediately? Consult the online Java API t find the answer.\t4. Write a Java code fragment that may appear in a main method to open a datagram socket for receiving a datagram up to 100 bytes, timing out in 5 seconds. If a timeout does occur, message &#8220;timed out on receive&#8221;\ufffd should be displayed on screen.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>2. Process 1 sends three messages successively to process 2. What is the possible order in which the messages may arrive at process 2 if 3. In the\u00a0setSoToimeout\u00a0method for theDatagramSocket\u00a0(or other classes), what happens if the timeout period is set <a href=\"https:\/\/www.benedictsol.com\/blogs\/ecet-490-week-4-homework\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-210459","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/210459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=210459"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/210459\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=210459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=210459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=210459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}