Needed to add the name of the client to command line arguments
Almost got sending of the file list registered. Server is dropping connection prematurly. Need to look into blocking reads and writes.