RAMYA-CP / Proximity

An offline terminal chat-room, which works on TCP socket connection, implemented in python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proximity

This repository contains a simple implementation of an offline chatroom.

Usage:

  • git clone https://github.com/sakshi2912/Proximity.git

  • To start the server

    python3 server.py

    Choose an IP address in the list of IP adresses presented, to start the server in the respective network.

    If the web socket is not occupied, the chat server is started and a passkey is generated, for the chat room it is hosting. ( This passkey is to be shared with the participants joining the chat. )

  • To start a client and connect to a chat room

    python3 client.py < chatroom's passkey >

  • To send a file from client to server or vice-versa file:path_to_file This is received and stored in a folder: Proximity_files

Features/Bugs:

  • Works on Windows, Linux and Mac OS
  • Can support group chats.
  • Can support file transfer between client and server ( The received files will be stored in a folder called Proximity_files ).
  • Anyone in the same network can start/join chatroom.
  • A client can exit and re-connect to a chat-room multiple times.
  • A server can host multiple chatrooms, but only one chat-room per network interface.
  • When the server disconnects, all the participants wil be forced to exit.
  • Type 'exit' to leave the chat-room.
  • Needs an User Interface (Refer v2 branch to checkout the previous work done on Terminal UI)

About

An offline terminal chat-room, which works on TCP socket connection, implemented in python

License:MIT License


Languages

Language:Python 100.0%