Quote:Do you think having different ports for different types of communication would be a bad or good design choice?
I think that's a bad idea, for two reasons:
1) You want to make it as easy as possible for people behind firewalls to host serevrs. Forwarding more than one port is annoying.
2) There is per-packet overhead of the IP and UDP headers (28 bytes), as well as your own framing, and the low-level framing. You really want to pack as much data as you can into each packet, and schedule packets at a regular rate of X times per second. Combining all data into a single packet, you can put a single packet sequence number in the packet header, and use this for both timing and reliable determination.