this question might be a little vague but that’s the nature of the problem. I’m developing something from scratch to transfer files between two devices on the same LAN (never over Internet). And this is a closed system, so I don’t need it to be compatible with anything else. I just want it to be as fast as possible so that I can transfer large-ish files quickly (typically photos and videos taken by phones, a few hundred MBs).
Right now, I am kinda tempted to implement a tiny subset of HTTP (only GET and POST methods and very few request/response headers), which I suppose shouldn’t be more than a few days’ work. I could transfer raw payload over TCP. But the advantage of HTTP is easy debugging. I can use curl or a browser to verify my code. And HTTP doesn’t have much overhead. And since it’s on a LAN, security isn’t much of a concern, so I don’t need HTTPs.
But I figured I would want to check with a broader audience and see if anyone knows of anything in existence that I can leverage. I’m only interested in mobile devices and not PCs. So I’m coding in Swift + Java/Kotlin.
Thanks.