Skip to content

vinayakj02/TCP-Chat-Server-using-Sockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

TCP Chat server using Sockets

A chat server implemented using TCP Sockets in Python.

image

image

image

Architecture

  • Client Server architecture based on Transmission Control Protocol (TCP).
  • Multiple clients connect to one central server which acts as host. TCP is a connection-oriented protocol that is a dependable connection protocol. The chat application will be hosted on one server, with several clients connecting to it and communicating with one another.
  graph TD;
      A[Server]---B[Client];
      A[Server]---C[Client];
      A[Server]---D[Client];

Feautures

  • Clients (users) can join and leave the server (chat room).
  • Clients can only join the server if the server authorizes it.
  • Clients can send private messages to other clients (users) in the server (chat room).

Commands

Command Use
/private <person_name> <text> only the client with person_name will be able to view the message
/leave will let the client (user) exit from the server
/color <color> <text> makes the text appear in that color
**text** will make text bold
__text__ will make the text italicised

To run

  • Run server.py to start the chat room.
  • Run client.py to start each client.

About

A chatroom implemented using TCP Sockets in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages