A basic text-based chatroom written in Java.
The ChatRoom project is a simple client-server application for real-time text-based chat. It is divided into two main components:
- ChatRoomServer: Manages connections from multiple clients.
- ChatRoomClient: Allows users to connect to the server and chat with others.
- ChatRoomServer.java: Main server class.
- ClientHandler.java: Manages individual client connections.
- Main.java: Entry point to start the server.
- Client.java: Main client class for handling connections and user input/output.
- Main.java: Entry point to start the client.
- Java Development Kit (JDK) installed (preferably JDK 8 or higher).
- A terminal or command prompt.
- Navigate to the
ChatRoomServer
directory:cd ChatRoom/ChatRoomServer
- Compile the server code.
- Run the server.
- Navigate to the
ChatRoomClient
directory. - Compile the server code.
- Run the client.
- Start the server first to listen for client connections.
- Start one or more clients to connect to the server.
- Clients can send messages which will be broadcast to all connected clients.
This is a part of the Advanced Programming course assignment at Amirkabir University of Technology.