A Java project demonstrating client-server communication using sockets. This repository includes both multithreaded and single-threaded implementations, showcasing the basics of establishing a communication channel between a client and a server.
- Multithreaded Server: Efficiently handles multiple client connections concurrently using threading.
- Single-Threaded Server: Provides a single-threaded alternative for basic understanding and comparison.
- Socket Communication: Illustrates the use of sockets for communication between client and server.
- Easy to Use: Straightforward code structure for easy comprehension and modification.
- Java 17
- Maven
- Clone the repository:
git clone https://github.com/HamidIdifi/socket-connection-sc.git
- Navigate to the project directory:
cd socket-connection-sc
- Build the project:
mvn clean install
- Run the application:
mvn spring-boot:run