I've just uploaded the full code for the simple chat server and client projects, it is a very simple project, but shows the core needed to create a server including multi-threading and connections /disconnections from clients.
At the moment the clients can do:
- Send messages to other clients.
- Send private messages to another client (/priv nick message)
- Ask for the list of connected users (/List)
- Change nick (/nick newnick)
- And of course, exit the server (/quit)