Example of cpp socket file transfer