We wrote a paper for Linux Tag that discusses a small MAS client. Please note that the paper on the offical LinuxTag DVD is not the final version. Somehow, an early draft got chosen for that DVD. Please use this final version instead:
The client program is here:
If you just want to look at the source, go here: player.c.html.
To build this example client, do
tar xvzf mas_example.tgz cd mas_example make
Then proceed as outlined in the paper.