Question: When running the programs using ./example_server 4000 and ./example_client 127.0.0.1 4000 on the same machine I get the following output: $ /example_server 4000 msg 1:

 When running the programs using "./example_server 4000" and "./example_client 127.0.0.1 4000"

When running the programs using "./example_server 4000" and "./example_client 127.0.0.1 4000" on the same machine I get the following output: $ /example_server 4000 msg 1: Hi msg 2: Hi again msg 3: Why am I just saying 'Hi' msg 4: Why are you not answering $ ./example_client 127.0.0.1 4000 msg 1: Hi msg 2: Hi again msg 3: Why am I just saying 'Hi'? msg 4: Why are you not answering? msg 6: Bye. msg 5: Explain why the output differs! Propose changes to the code to make the programs work as intended

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!