Skip to content

nasirHo/socket_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket_client

A Socket client implement by QT 5.15

Dependency

  • Ubuntu 18.04
    • build-essential
    • cmake
    • mesa-common-dev
    • libglu1-mesa-dev
    • qt515base
    • qt515quickcontrols2
sudo apt install build-essential cmake mesa-common-dev libglu1-mesa-dev

Because Ubuntu 18.04 QT version is too old, you have to add this ppa to your apt mananger.

# add ppa
sudo add-apt-repository ppa:beineri/opt-qt-5.15.2-bionic
sudo apt update
sudo apt install qt515base qt515quickcontrols2

And add to your PATH

# add to PATH
sudo vim /etc/profile
# add this line in the files
export $PATH="/opt/qt515/bin:$PATH"
# source the profile or relogin to take effect
source /etc/profile
  • Arch linux
    • base-devel
    • cmake
    • qt5-base
    • qt5-quickcontrols2

Compile

  • clone this repository
  • make a directory and enter
mkdir -p build && cd biuld
  • generate cmake configuration
cmake ..
  • build
cmake --build .

Usage

  1. Enter IP, port and you name then press connect
  2. Type message then press send or enter to send. Press disconnect or close the window to disconnect

About

A TCP server implement by QML and QT.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published