2080 10

CSC419 ยท 2080 ยท 5 marks

Write a TCP client-server system in which the client program sends two integers to a server program, which returns the greatest among them.

Write a TCP client-server system in which the client program sends two integers to a server program, which returns the greatest among them. [5]

Advanced Java Programming

Using TCP Socket Programming in Java: - Server: Creates ServerSocket, accepts connection, reads data from client, processes, sends response - Client: Opens Socket, sends data to server, reads response --- --- --- --- Side Steps ------------- Server Create ServerSocket โ†’ Accept connection โ†’ Get st...