Final Program Name CPS 102 Computer Science 2 -Programming in Java Spring, 2017
ID: 3822246 • Letter: F
Question
Final Program Name CPS 102 Computer Science 2 -Programming in Java Spring, 2017 Mark B. Hatch, Instructor Here is your last assignment You have a choice: you can do 28.21 and modify the program as described. Doing part e will get you points extra on the final OR Problem 28.22 missing chapter is your guide here you that you needed it as wel the material in Chapter 25 and the GUI material in the previous chapters. I know, I know, I didn't go over that material on extended Gul functionality, but seeing as how you are in college and i only a matter of reading and the code examples in the book, I figured you could handle m going to change this program, slightly, however. The book would have you set up a client a server program, have them connect and transmit your message in morse code. That seems unnecessary to me. I just want you to transmit a message no longer than 160 characters to another client Twitter style. For this you should be able to start the server program. and then two clients. They should connect to the server and you should be able to pa can messages back and forth between the clients using the server. pass assignment, this one and should be to use r code to test how you made this work. As always there is an extension to this for those that want to take step further and show off The logical extension is that ought to be able to start a client on any machine in my local make and chat with else in my local network on different machines. If you can anyone this program work so that start the server on one machine, up fire up a little multiple clients somewhere else on the network and chat, absolve you from the final. Be forewarned. ..starting this up on one machine means you can use the local host for all thre Off Moving this to different machines means that there are some things you need to think about. the top of my head, here are some points...where is the server? How do talk to client, do I to know its address name? How do know where the message is coming a client How many clients are out there, and does it matter? What happens if to talk to that isn't there or drops its connection?Explanation / Answer
By second part, I presume you are asking about how to start client on any machine tool and chat with anyone else in the local network.
This can be achieved by using two ways -
1. instead of connecting to server using localhost, we can use the IP address of the server.
2. use the UDP packets and broadcast them.
I feel using the UDP packets Broadcast would help you in this assignment.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.