2080 10

BIT401 ยท 2080 ยท 5 marks

Write a socket program using TCP where client sends an integer to server and server response whether it is positive or negative.

Write a socket program using TCP where client sends an integer to server and server response whether it is positive or negative. [5]

Advanced Java ProgrammingChapter 7: Network Programming with SocketsTCP socket programming steps

A TCP client-server program where: - Client: Connects to server and sends an integer - Server: Receives integer, determines if positive/negative, sends response back --- --- --- 1. Compile both programs: 2. Run server (Terminal 1): 3. Run client (Terminal 2): 4. Sample Output: - Client: Enter an ...