Hi,
I would like to suggest adding client to server and server to client file sending API.
I did find this suggestion: github.com/urho3d/Urho3D/issues/476 though I think it would be better to have a dedicated API for sending files, just like sending packages.
The thing with packages is that they’re overkill for sending single files, adding arbitrary complexity to the task. While using messages to send files is probably simpler, it doesn’t clearly express the intention.
It would be nice to have functions like:
SendFile()
BoardcastFile() - server only
A use case for example is something like Counter-Stike’s player sprays. The spray’s texture will need to be sent from the player to the server and then from the server to the rest of the players (no p2p).
Another use case example is Garry’s Mod duplication tools, which let players save things they build and upload them to servers they join.