Skip to content

Ali-Jasim/TCP_Chat_Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Basic Python TCP Chat Application

Instructions

  • Run: python server.py – start the server
  • Run: python client.py – Connect as many clients as you want and run commands
  • Type /help for list of commands

Dependancies

  • Python 3.10+

Available Commands

Global Commands:

  • /list --- Lists all the rooms available to join
  • /exit --- exits program, user leaves all rooms

Room Commands:

  • /create <room_name> --- creates a joinable room
  • /join <room_name> --- connect to room
  • /leave <room_name> --- disconnects from room
  • /view <room_name> --- detailed information about room (users and capacity)

Important Notes

  • if user is not entering command, they will broadcast the message to all room they are in. In short, don’t type / to send messages to room(s).
  • User doesn’t automatically join room upon creation, you must join the room after creating it
  • Run each file in separate terminal
  • Hard coded connects to localhost (127.0.0.1) and port 3001

About

TCP chat application using python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages