@redhead
I dont really have a book, what I tried to do is to have two loops, one for new connections and one for the connection state itself. - I probably screwed it all up anyways

...
@DJMaze:
I want a chat server, where everyone can send a message which is then broadcasted to every client.