Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
jmnie committed Feb 25, 2020
1 parent ec4133c commit f1a44f4
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 2 deletions.
30 changes: 28 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Instant Messaging APP
# Instant Messaging Application using Qt and C++
> * A socket programming project implemented in Qt and C++ supporting real-time communication.
> * Developed server and client using Qt in C++ for real-time communication based on TCP protocol.
> * Supported multiple users login at the same time and implemented group chat function for multiple users.
> * Used MySQL in the back-end to store the users’ properties and historical messages.
> * Implemented features for user registration, password reset and change avatar.
## Client
> * Used Qt Widget for the interfaces.
> * Used TCP protocol for the communication.
![Client Interface](images/client1.png)

![User Login](images/users.png)

![Chat Room](images/chatRoom.png)

## Server
> * Used MySQL as the back-end server to store historical messages.
> * Used muduo network library https://github.com/chenshuo/muduo
![Server Info](images/server.png)


## Useage
This project requried server to start on the back end which could start use:
> * bash start.sh
Then the server will run in the backend. User could login to the server and perform functionabilities.



## Server
Binary file added images/chatRoom.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/client1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/server.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/users.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions start.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#! /bin/bash

while true
do
monitor=`ps -ef | grep main | grep -v grep | wc -l `
if [ $monitor -eq 0 ]
then
echo "TcpChatRoomServer program is not running, restart it"
./main 2019
else
echo "TcpChatRoomServer program is running"
fi
sleep 1
done

0 comments on commit f1a44f4

Please sign in to comment.