2079 8

CSC419 ยท 2079 ยท 5 marks

Write Java program that send messages with each other using TCP socket.

Write Java program that send messages with each other using TCP socket. [5]

Advanced Java ProgrammingChapter 1: Programming in JavaSample Java Program

TCP (Transmission Control Protocol) socket programming in Java uses the java.net package. Communication requires two programs: a Server and a Client. --- 1. Create object of ServerSocket class 2. Accept connection from client 3. Get input and output streams 4. Read/Write data to socket 5. Close s...