Simple socket program to transfer data between client and host