here is a C++ code for TCP server and client on linux mechine that listens on a specific port and then replies back to the client