Skip to content

AmirhoseinArabhaji/Chatroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatroom

Network Course Project

Simple Chatroom based on Client/Server Architecture

You can send private and public message

Running

  1. install requirements from requirements.txt
  2. run main.py in ./Server
  3. run main_GUI.py in ./Client

Protocol

  • Client to Server Messages :

    • Public Message :

      Public message, length=<message_len>:\r\n
      <message_body>
    • Private Message :

      Private message, length=<message_len> to <user_name1>,<user_name2>,<user_name3>:\r\n
      <message_body>
    • Login Request :

      Hello <user_name>
    • Logout Request :

      Bye.
    • Requesting List of Users :

      Please send the list of attendees.
  • Server to Client Messages:

    • Public Message :

      Public message, length=<message_len> from <user_name1>:\r\n
      <message_body>
    • Private Message :

      Private message, length=<message_len> from <user_name1> to <user_name2>,<user_name3>:\r\n
      <message_body>
    • User logout :

      <user_name> left the chat room.
    • Welcome Message :

      Hi <user_name>, welcome to the chat room.
    • User Join Public Message :

      <user_name> joined the chat room.

Screenshots

Welcome

Welcome

Public Chat

Public Chat

Private Message

Private Message

About

Simple Chatroom using socket and PyQt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages