The assignment for Computer Network Lab (CSC 611) requires students to write two TCP socket programs in a chosen programming language. The first program establishes a client-server connection where the client sends a message to the server, and the server displays it. The second program involves the client sending a string to the server, which echoes back characters based on the string's length, continuing until the client sends 'bye', with outputs to be documented and submitted by the due date of February 9, 2024.
The assignment for Computer Network Lab (CSC 611) requires students to write two TCP socket programs in a chosen programming language. The first program establishes a client-server connection where the client sends a message to the server, and the server displays it. The second program involves the client sending a string to the server, which echoes back characters based on the string's length, continuing until the client sends 'bye', with outputs to be documented and submitted by the due date of February 9, 2024.
1. Write a TCP socket program (in C/C++/Java/Python) to establish connection
between client and server. The client program will send a message to the server and the server program will display the message. 2. Write a TCP socket program where client sends a message (string) to server; server echo back the characters at even position if length of the string is even otherwise echo back the characters at odd position. This process continues until the client sends ‘bye’.
Show the output screens/connection to the course instructor or teaching/technical assistant,
prepare a pdf document with task and output screens, save it with filename format <reg no_assgn no.pdf> (e.g 1012_Assgn1.pdf) and submit in classroom on or before the due date.