Hello I am in a habit of writing the code what you have asked for, like, every line should be having comments which expresses our intention as well as the function and class codes.
Coming to my experience, I have experience in creating distributed systems and I have already worked and completed many major works which (almost every work) contains Sockets.
I know all the languages mentioned by you C or C++ or Java, its your call, your command and I will deliver the 110% original code to you.
I believe you are a very busy person and your time is very precious to you, still, I request you to make a time for us so that we could discuss about the time line and platform(windows, Linux, mac) for this work.