add the transfer data code for client.but it has two problem. one is
that file is not completed transfered, the other is that the program can
not terminate.