Exercise for simple chat messaging with sockets