A basic TCP chat in Java