Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatroom

This project is a chatroom application developed in Python, utilizing TCP and UDP protocols for client-server communication. The chatroom allows multiple clients to connect and exchange messages in real-time.

Table of Contents

Features

  • Multi-client Support: Multiple clients can connect and chat simultaneously.
  • TCP and UDP Support: Enables messaging using both TCP and UDP protocols.
  • Broadcast Messaging: The server broadcasts received messages to all connected clients.
  • Simple Usage: User-friendly command-line interface.

Installation

To run this project on your local machine, follow these steps:

  1. Clone this repository:

    git clone https://github.com/yourusername/chatroom.git
    cd chatroom
  2. Install Python and necessary packages (default Python setup is sufficient).

Usage

  1. Start the Server:

    python Server.py

    This command starts the server and waits for client connections.

  2. Start a TCP Client:

    python ClientTCP.py

    This command starts a TCP client and connects to the server.

  3. Start a UDP Client:

    python ClientUDP.py

    This command starts a UDP client and connects to the server.

  4. On the client side, type your message in the command line and press Enter to send.

Requirements

  • Python 3.x
  • Internet connection or local network

Contribution

  1. Fork this project.
  2. Create a new branch: git checkout -b new-feature
  3. Commit your changes: git commit -m 'Add new feature'
  4. Push to your branch: git push origin new-feature
  5. Create a pull request.

About

UDP-TCP hybrid chatroom using socket programming in Python.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages