Skip to content

A Python-based chat system that uses Sockets and the TCP protocol for two-way communication between multiple clients via a central server. The project was built as part of a practice of principles in computer communication, network programming, and multithreading, without the use of third-party libraries for server management.

Notifications You must be signed in to change notification settings

OrelCohenTech/Chat_system

Repository files navigation

Chat_system

📡 Python Socket Chat System

👨‍💻 Developed by: Orel Cohen & Oshri Halevi

🧠 Technologies: Python, TCP, Multi-threading, Socket Programming


📌 Project Description

This project is a real-time text-based chat system built using Python sockets and the TCP protocol.
It includes a central server and multiple clients that can connect, start private conversations, and exchange messages.

The system was developed as part of a university networking course, focusing on socket programming and client-server communication.


🧩 Features

  • 🔗 Full-duplex communication using TCP
  • 👥 Supports multiple clients (5+)
  • 🧵 Server handles multiple clients using threads
  • 📤 Private messaging between users
  • 🧑‍💻 Unique usernames
  • 💬 Command-based interface: /chat, /message, /help, /quit
  • ⚠️ Error handling for disconnections and invalid commands

🛠️ How to Run

Make sure you have Python 3.x installed

1. Run the Server

python chat_server.py

About

A Python-based chat system that uses Sockets and the TCP protocol for two-way communication between multiple clients via a central server. The project was built as part of a practice of principles in computer communication, network programming, and multithreading, without the use of third-party libraries for server management.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages