Chat application on sockets. Server-side - console app. Client - swing.