SimpleChatApp is a basic chat application that enables communication between clients and a server. It's a simple Java chat implementation.
- Client-server connection.
- Sending messages between clients and the server.
- Simulation of message delivery with ACK (Acknowledgment) and NACK (Negative Acknowledgment).
- Java (JDK) installed on your system.
- How to Use
- Clone the repository:
git clone https://github.com/your-username/SimpleChatApp.git
- Compile the server code:
javac entities/Server.java
- Compile the client code:
javac entities/Client.java
- Run the server:
java entities.Server
- Run one or more clients:
java entities.Client
- Follow the instructions to provide a name for the client and start sending messages.
Note: Ensure you replace
"YOURIPHERE"
with the actual IP address of the server in theprivate static final String SERVER_ADDRESS = "YOURIPHERE"
; line in theClient.java
file.