Simple file transfer using blocking sockets and pthread for workers