On 12 Mar 2008, at 17:18, Diego Bernardes wrote: > Arlen Cuss wrote: >> Hi, >> >> The gameplay concern is about making sure that one or more players >>> aren't cheating so you will probably want to encrypt your traffic. >>> Take a look at the Ruby OpenSSL library. >> >> >> If I'm not mistaken, encrypting traffic isn't likely to prevent >> cheating, is >> it? Any player could modify the source. >> >> Arlen > > yea, its to prevent hacking. > > > Ellie, thx alot, you helped alot :) > > Hmm, the last question, there is any RUDP library to ruby? if not, im > gonna try to make one :) > About the speed, im making it a 2d sidescroller so i think at least in > the client dont gonna have any speed problem, about the server i dont > know, only the time gonna say XD There isn't an RUDP library as such, but if you look at the bit-struct library you'll find examples of how to roll your own protocols and then it's a question of opening a raw packet socket. Details of that vary from platform to platform. You'll get best performance by implementing RUDP as a C extension, which should be similar to the standard library's UDP and TCP/IP libraries. Ellie Eleanor McHugh Games With Brains ---- raise ArgumentError unless @reality.responds_to? :reason