Anyone is welcome to implement their programs from scratch, but the provided source code should make it much easier to get your poker program to support the protocol. Minor changes should allow the C code to compile under Windows. Once the low level message passing is dealt with, the protocol simply becomes a matter of passing the right messages back and forth from the client to the server. The various messages have been assigned farily arbitrary numerical values. Each message has a defined format, given below.
Strings are c-style, null terminated.
Integers are 4-bytes long. The first step is to log on to the server by establishing a connection and logging onto the poker server. Proceed to main game loop. After a successful authentication, we enter the main game loop. Otherwise, it is used to reveal a player's hand in a showdown.