HamidIdifi / socket-connection-sc

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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

socket-connection-sc

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.

Features

  • 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.

Prerequisites

  • Java 17
  • Maven

Installation

  1. Clone the repository:
git clone https://github.com/HamidIdifi/socket-connection-sc.git
  1. Navigate to the project directory:
cd socket-connection-sc
  1. Build the project:
mvn clean install
  1. Run the application:
mvn spring-boot:run

About

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.


Languages

Language:Java 100.0%