Connects a client to running server and transfers files from a directory using threads.