Skip to content

A simple Application with a single server, that starts a chat Thread between 2 clients at a time, using Socket-Programming

Notifications You must be signed in to change notification settings

AazamJutt/Messenger_Application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Developed By Aazam Jutt

GitHub release (latest by date)

Description

  • It uses a simple server that creates a Thread as a ChatHead between clients.
  • It uses some commands for inter-server-client communication to perform some actions.
  • When client connects to server and ask for connection, Server asks for name of the client and registers it in local data structure (Dictionary) along with a socket, on which serverr is connected to the client.
  • In this Dictionary Client's name act as a Key and its Socket is the value.
  • When 1st client arrives and No one is online, Server sends a message to client that "No one is online wait...".
  • When 2nd client arrives, Server registers it and displays "Online Clients" page to him/her. When client select one of the online clients. Server starts a ChatHead as a thread. Server recieves Messages from a client and sends it to another client.

Tutorial

  • Run the Server file. Server starts listening

GitHub editor

  • Run the Client File. Registeration form appears.Register with name and press submit.

GitHub editor

  • Server sends a message to Client, that no one is Online.

GitHub editor

  • If you are running it on the same machine. Run Client file a 2nd time and register again.

GitHub editor

  • If any Client is Online. Server shows it in the Online Client window

GitHub editor

  • When you Click any of the client. Server sends a request to that client with a proper message.

GitHub editor

  • When other client accepts the Request chat starts between the Clients and both clients' status is set to Busy, no other client will see these client in their online client window.

GitHub editor

  • A visualization of inter-cient chatting.

GitHub editor

  • If one of the client presses (X) or end_Chat button. other client recieves a message.

GitHub editor.

  • Server side behaviour during all this processing.

GitHub editor

Bugs

  • Handle, Thread-safe variable. i.e. Critical Section Management between Threads.

About

A simple Application with a single server, that starts a chat Thread between 2 clients at a time, using Socket-Programming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages