Simple console chat based on java.nio