1 complete the partial code provided with this lab that

Assignment Help Computer Engineering
Reference no: EM13371380

1. Complete the partial code provided with this lab that implements a simple group communication application using Java's MulticastSocket class.

2. Change this program so that the members now send their ID and x messages (passed as arguments) and receive an unlimited number of messages. To identify the messages during the execution, you can use the following notation: MSG11 is the first message sent by member1, MSG32 is the second message transmitted by the member3. For example the first member will pass the following parameters: 1 3 228.5.6.7, specifying that the program the ID of the member which is 1, and that he will send 3 messages: MSG11, MSG12, and MSG13 to the group identified by the IP address 228.5.6.7.

1. In general, in group communication we need a coordinator to help coordinating all the members. For example, if the members need to order the received messages they will need the coordinator to tell them how to order these messages. Or, if the members need updates they can ask the coordinator. One thing that you will notice from the previous question is that a member will not receive the messages that were transmitted before he joins the group. In the next task, make sure that all new members receive the previously transmitted messages. This can be one of the roles of the coordinator.

You are asked to update the program of part 2 and making sure now that the coordinator keeps record of all transmitted messages and provides old messages to new members. The first member (ID1) to join the group will be considered as the coordinator. Its role is to act as a member, but also to send previously received messages to new members. The coordinator can deduce the IP address and port number of the new member that just joined the group and sends all previously received messages using UDP unicast interprocess communication.

Reference no: EM13371380

Questions Cloud

Keyboards microphones and mice have generally been used as : keyboards microphones and mice have generally been used as the standard input devices for most computer systems. the
Management theories are all about the application of those : management theories are all about the application of those theories to management problems such as scientific theory
1 the distribution of the weights of the packages received : 1. the distribution of the weights of the packages received by a parcel service is normal. nine packages are randomly
The temperature at each point x y of a metal plate is given : the temperature at each point x y of a metal plate is given bytxy 1 x2 32y2the path of a heat-seeking particle on
1 complete the partial code provided with this lab that : 1. complete the partial code provided with this lab that implements a simple group communication application using
1the driver of a truck loaded with 900 boxes of books will : 1the driver of a truck loaded with 900 boxes of books will be fined if the total weight of the boxes exceeds 36450
Problem 11 there is a formula for sample size n with given : problem 11. there is a formula for sample size n with given margin of error m and condence level c for population
In 1936 statistician and geneticist ra fisher reanalyzed : in 1936 statistician and geneticist r.a. fisher reanalyzed mendels famous pea data and using the chi-square statistic
Complete the strategic plan for your approved energy sector : complete the strategic plan for your approved energy sector organizationreflect on how your approved energy sector

Reviews

Write a Review

Computer Engineering Questions & Answers

  Questionexecute a class person with two fields name and age

questionexecute a class person with two fields name and age and a class car with three fields-1. the model2. a pointer

  Write a program that takes its input from a binary file

The number a is the average of the numbers n1, n2, n3, and so forth. Hint: Write your program so that it first reads the entire file and computes the average of all the numbers, then closes the file, and then reopens the file and computes the stan..

  The difference between animation and transition effects

When are they appropriate? When is it better not to use them? Can you give me an examples.

  Question1 information representation-while dealing with

question1. information representation-while dealing with binary numbers many it professionals favour to use hexadecimal

  Define the best possible scenario for an organization

If in a hypothetical situation your company was capable to hire only either technically sound managers with weak leadership skills OR strong leaders with less knowledge/interest in routine management, that would you opt for and why.

  Asynchronous transmission

Assume that the sender and receiver utilize an asynchronous transmission and agree not to utilize any stop elements.

  Analyze the advantages and disadvantages of cloud computing

Cloud computing was introduced this week as a giant client server environment. Analyze the advantages and disadvantages of cloud computing on the Internet.

  Why text in txtboxin is moved to txtboxout

You have a form with two text boxes, txtBoxIn and txtBoxOut, and a command button, cmdButton1. Write down the instructions such that when the button is selected, the text in txtBoxIn is moved to txtBoxOut.

  Define what sql is and its importance

Write down the SELECT statement to display all the columns of the STUDENT table but only those rows where the grade column is greater than or equal to 90.

  What aim does a firewall play in an organization

How varios two routers be used to provide separation of a LAN from the outside world? Provide references.

  Create application to manipulate array of student record

Create an application to manipulate an array of student record objects. A student record will consist of a name (first, middle, and last), an ID number (9 numeric digits, cannot be more or less), an address (street, city, state, and 5 digit Zip co..

  Developing a database of measured meteorological data

You are developing a database of measured meteorological data for usage in weather and climate research.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd