Skip to content

Tenerome/chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chat:A IM System

  • client name:chat

  • server name:chat_server

  • Languages

    • Server: C++

    • Client: QML with Qt C++

  • Environment and Framework

    • FluentUI :for client ui

    • docker :for mysql server, vsftpd

  • build

  1. pass.dat

    create the pass.dat file,

    encode the password of mysql user with md5:md=MD5("password")

    encode again with base64:base=base64(md)

    append "base" to "pass.dat" :echo base >> pass.dat

  1. CMakeLists.txt

    set the arguments

set(SERVER_PORT 8888)
set(SQL_HOST "127.0.0.1")
set(SQL_USER "root")
set(SQL_DATABASE "chat") 
set(SQL_PORT 3306)
set(SQL_PASS_PATH "/home/tenerome/Documents/chat/src/server/build/pass.dat")
  1. cmake & make
mkdir /build
cd /build
cmake ..
make
./server_main   
  • SQL
  1. user
Column Name Data Type Length Key Auto Increment
uid int 128 PRI v
account varchar 128 UNI
password varchar 128
name varchar 128
status int 1
route int 1
  1. message
Column Name Data Type Length Key
from_account varchar 128 MUL
to_account varchar 128 MUL
add_flag int 1
answer_flag int 1
message_buffer int 1
message_data varchar 2048
  1. contact
Column Name Data Type Length Key
account varchar 128 MUL
contact varchar 128 MUL
nickname varchar 128
  1. chatroom
Column Name Data Type Length
account varchar 128 MUL
message varchar 128

Display

  1. format checking
    image
    image
    image
  2. chatting
    image image image
  3. settings
    image
  4. multi platform
    image
  5. others
    image
    image
    image
    image
    image

About

毕设项目:QML+C++的即时通信系统

Resources

License

Stars

Watchers

Forks

Packages

No packages published