I am looking to make a program that can submit large files over tcp. I don't have any issues with sending the buffers to the server/client. I am just unsure on how to go about sending the file metadata. What would be the best way to transmit the filename, permissions, etc? Thanks.
https://rsync.samba.org/