I’m building a File Sharing Program, and I would like to know if it’s better, while using Sockets, to receive and send byte per byte, or a fixed amount. I’m sending messages of Login, Actual file size list, etc, of 512 bytes, and 65536, when sending and receiving files.
Share
it is depend on your usage and goal:
for High Performance when in non-faulty environment:
choose 1500 bytes
for bad and faulty environment:
choose lower sizes but not byte per byte