I've started a small project where I would like to create a Server/Client using ruby's UDP sockets.
One of the issues I ran into was that I had trouble figuring out how to do public key cryptography. So far I've successfully created a snippet for verifying that it's the sender who crafted the message using a signature.
Thought I would share the snippet so other people could benefit from it or I could get some feedback in case I'm doing anything wrong.
https://gist.github.com/Aerotune/7961606I'm also looking into this article about reliability and flow control specifically for UDP and game programming. I'm thinking that the implementation in the article would simply be good enough, at least for a start.
http://gafferongames.com/networking-for-game-programmers/reliability-and-flow-control/