Giter Site home page Giter Site logo

chatsocket's Introduction

Simple Chat Application

This is a simple chat application implemented in Python using socket programming. The application includes one server and three clients (client, client1, client2) that can communicate in real-time.

Features

  • Client-Server Architecture: Real-time chat using Python sockets.
  • Concurrent Connections: Supports multiple clients with multi-threading.
  • Simple User Interface: Basic interface for sending and receiving messages.

Requirements

  • Python 3.x

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/yourusername/chat-app.git
    cd chat-app
  2. Ensure you have Python 3 installed. You can check your Python version using:

    python --version

Usage

Running the Server

  1. Navigate to the project directory.
  2. Run the server script:
    python3 server.py

Running the Clients

  1. Open three separate terminal windows or tabs.
  2. In each terminal, navigate to the project directory and run a client script:
    python3 client.py
    python3 client1.py
    python3 client2.py

Interaction

  • Type a message in any client terminal and press Enter to send it.
  • Messages will be broadcasted to all connected clients, and each client will display incoming messages from others.

File Structure

  • server.py: The server script that handles client connections and message broadcasting.
  • client.py: The first client script for sending and receiving messages.
  • client1.py: The second client script for sending and receiving messages.
  • client2.py: The third client script for sending and receiving messages.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

For any inquiries, please contact Wassaf.

chatsocket's People

Contributors

wassaf001 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.