Question: Create a java program that does the following: Goal: Chatting with someone requires the use of SMS text messaging or a server-based Instant Messenger (IM)
Goal: Chatting with someone requires the use of SMS text messaging or a server-based Instant Messenger (IM) service such as AIM or Google. What if you want to chat with someone that is nearby (that is, within the same room or otherwise within the same WiFi hotspot or Ethernet domain that you are part of)? Why use an expensive and/or heavyweight service such as SMS or IM? For your first project you will develop a "local chat" program whereby you can chat directly with a nearby user and implement it in a Windows, Linux, or Android application program. The "local chat" program should be implemented using a client/Server model based on UDP protocol. Requirements: The requirements of this "local chat" program must meet are: 1. The chat is performed between a client and a server 2. The server will first start up and choose a port number. Then the server prints out its II address and port number 3. The client then will start up and create a socket based on the information provided by the server. 4. Now the client and the server can chat with each other by sending messages over the network 5. The client/server MUST be able to communicate with each other in a continuous manner. (eg. One side can send multiple messages without any replies from the other side) 6. There is no requirement on what language you use to implement this project, but your program should call upon the socket API for UDP to realize the functionality
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
