[plt-scheme] Poker server in scheme

From: Neil W. Van Dyke (neil at neilvandyke.org)
Date: Sat Dec 4 09:43:38 EST 2004

Unless this is an immersive 3D first-person-shooter flavor of poker,
I think RakNet and binary protocols might be complicating your life

If you haven't already, why not try using a conventional human-readable
7-bit ASCII protocol over TCP?

The generic message syntax might look like this:

    <message>  ::=  <opcode> *{ SPACE <parameter> } LINEFEED

For a made-up example of a message in this syntax, the following ASCII
line (terminated by a linefeed character not shown here):

    balance 69.02 487253

That syntax is fast and easy to generate and parse from most any
language, you don't have to worry about things like endianness, and it's
still going to fit in a datagram.

If you put parentheses around it, you can use save yourself a few
minutes of development time by using the Scheme reader.

Posted on the users mailing list.