change to header and file transfer(unsuccessful)

i tried to implement header function, but don’t know how to do it with
trustcloud.c  I did change codes for client and server. The file
transfer part did not get changed since I failed to get it work.