Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.03 KB

README.md

File metadata and controls

41 lines (32 loc) · 1.03 KB

💬 SimpleChatApp

SimpleChatApp is a basic chat application that enables communication between clients and a server. It's a simple Java chat implementation.

Features

  • Client-server connection.
  • Sending messages between clients and the server.
  • Simulation of message delivery with ACK (Acknowledgment) and NACK (Negative Acknowledgment).

Prerequisites

  • Java (JDK) installed on your system.
  • How to Use

How to Use

  1. Clone the repository:
git clone https://github.com/your-username/SimpleChatApp.git
  1. Compile the server code:
javac entities/Server.java
  1. Compile the client code:
javac entities/Client.java
  1. Run the server:
java entities.Server
  1. Run one or more clients:
java entities.Client
  1. 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 the private static final String SERVER_ADDRESS = "YOURIPHERE"; line in the Client.java file.