veloren / veloren

An open world, open source voxel RPG inspired by Dwarf Fortress and Cube World. This repository is a mirror. Please submit all PRs and issues on our GitLab page.

Home Page:https://www.veloren.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Network Package Interface

xMAC94x opened this issue · comments

currently packages are send directly over the Socket, however it would be good if the ClientConnection and ServerConnection have multiple socket support (TCP and UDP socket) and the ClientPackage or ServerPackage has some kind of information like reliable, fast, e.t.c which is evaluated by the Connection so that the correct socket is choosen there.
We could implement TCP, UDP, interprocess message

We could use the enum_map crate I've used in Voxygen to quickly assign a priority/performance level to each kind of packet.

Packets priority/performance are not going to be handled at the network level, but higher in the system level by the code that actually creates the packet when needed.