Skip to content

Basic implementation of socket programming in Python for instant messaging.

Notifications You must be signed in to change notification settings

a-sarja/Basic-Instant-Messenger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Basic Chat Application

A basic chat application written in Python where clients can connect to the server by sending SIGNIN request.

Once connected, they can chat with the other available connected clients in real time.

Author Information

Requirements

  • Python 3.10 or later
  • Pip 22.0.2 or later (Installed from python 3)
  • Packages - argparse, json, select and socket

Running Instructions

Run the server using the following command:

./server.py -sp <port_number>

Run the clients using the following command:

./client.py -u <user_name> -sip <server_ip> -sp <port_number>

Commands available to the clients:

SIGNIN <user-name>

LIST

SEND <target-username> MESSAGE

Assumptions

  • LIST command stores the online clients information locally on the client. Hence, before making any new send request, we should call LIST to fetch the latest information

About

Basic implementation of socket programming in Python for instant messaging.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages