[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.2 The server base library: libggzdmod

In order to be informed about player joins and leaves, and the status of the game (running, done, ...), the ggzdmod library is essential to use.

This is how a simple C game server embeds the necessary function calls:

@verbatim static void callback_state(GGZdMod *ggz, GGZdModEvent event, void *data) { /* Evaluate state */ }

int main() { ... ggzdmod_set_handler(ggzdmod, GGZDMOD_EVENT_STATE, callback_state); ... }



This document was generated by Abel Cheung on December, 2 2004 using texi2html