Computer-Network-Programming

The question and its requirements are specified in the attachment below. Please make sure that the code does not match anywhere.