Write a program MyServer and a program MyClient communicating through sockets. Both programs use the same port number, and the client uses the address "localhost" to connect to the server that is on the same machine.
The server is always ready to connect to a client. The server is notified when the connection is established with the message: "Connection accepted:" + socketName. While the connection is active, the server reads the data sent from the client line by line, prints them locally, and sends them back to the client. The end of the program is indicated by the client with "END".
When the client connects, it writes "socket =" + socketName and then sends 10 lines of text "I am " + rowNumber. After each send operation, the client reads the response from the server and prints it. Finally, the client sends "END" to terminate the transmission. The closure of the transmission by the server is intercepted, and the message "I'm closing..." is printed.