TNS server and clients codebase