Question: Advance Java Design a socket-based client-server application in which the server listens on some port the client connects to that port once the socket connection
Design a socket-based client-server application in which
- the server listens on some port
- the client connects to that port
- once the socket connection is established the client sends the operating system information to the server; the server reads this information and saves it into a map, e.g. Map
.
Show code skeletons for client and server, including connectivity and read / write logic. You can obtain the operating system running a java application via the call System.getProperty ("os name")
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
