Search Age Range, Search graducation year, and Terminate. In opition 1, it should collect all the data to the text file, in opition 2, it should search for age range from the text file. in opition 3, it should search the graducation year from the text file and if the year is not there it should print record not found. And opition 4, the client sho
Can anyone help me with basic client-server interaction using TCP sockets in network
The ideas is have 4 choice: Add record, Search Age Range, Search graducation year, and Terminate.
In opition 1, it should collect all the data to the text file, in opition 2, it should search for age range from the text file. in opition 3, it should search the graducation year from the text file and if the year is not there it should print record not found. And opition 4, the client should close the connection and terminate.
studentRecord.txt:
John,Doe,24,Computer Science,2023
Jane,Doe,22,
Charles,Babbage,21,Math,2022
George,Bool,25,Math,2023
Marie,Curie,26,Chemistry,2023
I know this isn't enough but I want to understand about the client-server interaction using socket interface. So please try to make it simple for me. And feel free to use extra c file and makefile to run it from jupyterhub.
that would be helpful. Thanks.
Step by step
Solved in 3 steps