Giter Site home page Giter Site logo

cmkhaledsaifullah / usask_socket_chat Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 3.0 25 KB

The Project is build on Python. It is a simple chat application using socket programming for multiple chat room

License: GNU General Public License v3.0

Python 100.00%
socket-programming chat-room python multiple-chat-rooms

usask_socket_chat's Introduction

USASK_Socket_Chat

The Project is build on Python. It is a simple chat application using socket programming for multiple chat room The Project is build on python using socket programming.

Get Started

Its a Multiple chat room app. User can create a new room, join an existing room, leave from the existing room, switch to other existing room, chat within the room and quit from the system.

Previous history of the chat room is stored in the server so whenever anyone wants to join a room he/she can see the previous history of the room.

Installation:

  1. Clone the project in your desired location.
  2. Open Terminal
  3. write :

    python3 chatServer.py 127.0.0.1

  4. It will show :

    "Server is running on 127.0.0.1, 1131"

  5. Open at best 20 terminal for user you want. This app will allow only 20 client. If you want more user . go to chatServer.py and change the value of "Max_Clients".
  6. In each terminal write :

    python3 chatClient.py 127.0.0.1.

  7. It will show:

Welcome to USASK ChatRoom.
Enter the name you want to display:

8. Enter a name like: "John", "Jack" etc. 9. In the client interface it will display:

Commands: [list] to see the list of all rooms [join room_name] to join an existing room [create room_name] to create a new room [switch room_name] to switch to another room [leave] to leave the existing room [commands] to see the available COmmands [quit] to quit from the system Otherwise start typing and enjoy!

In the server interface it will display:

new says: name: john
New connection from: john.

Follow the commands and enjoy chatting with one another.

Cheers.

usask_socket_chat's People

Contributors

cmkhaledsaifullah avatar

Stargazers

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