|
|
| Author |
Message |
< Erlang ~ Reliable UDP |
| JEricsson |
Posted: Tue Oct 30, 2007 2:23 pm |
|
|
|
Joined: 13 Jul 2007
Posts: 2
Location: Gothenburg/Sweden
|
I got a couple of questions about gen_udp.
We are making an multiplayer strategy game this semester and we decided to go with UDP due to performance. I assume gen_udp doesn't provide reliable UDP(rudp).
What matters is to get the packages in the right order from the game clients, but we would like to avoid the TCP overheard to some extent.
The plan is to give each package an ID and collect them in the correct order on the server.
Is it possible to control the size of packages sent? (it says in the doc that the receive buffer is 8191(B?), is the send buffer the same?)
If the send and recv buffer has the same size, is it suitable split up the data every 8178B and add an ID? |
|
|
| Back to top |
|
| JEricsson |
Posted: Tue Oct 30, 2007 8:20 pm |
|
|
|
Joined: 13 Jul 2007
Posts: 2
Location: Gothenburg/Sweden
|
Just a follow up.
We have found out that a package size will not be larger than 4KB. So that is the limit, but feel free to post your thoughts about getting reliability.
What about storing the packages on a RAM-mnesia DB until all packages are received, and sorting afterwards? |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|