Introduction
This is a simple example on how to use libnet.
I've made this for myself, sharing it with the community came up through a thread at allegro.cc.
I've only used Mingw, if you make additional makefiles, share them.

This example is based on the libnet article in Pixelate #7.
Most code is directly copied from that.
I've changed most of the code to my own style though, and used a different server-client solution.
The program itself is also even simpler than the original.


Design
The goal is to let each client have a number that they can move around on the screen.

Server receives control packets from the clients, update the players and broadcast their position.
Client just joins, send control packets, receive updated positions and draw the players.

The server is just a client that runs the server part of the program.
It has no more advantage over the clients than client #2 has over client #3.