Skip to content

linux socket programming practice -- a more to more chatroom implement by cpp

Notifications You must be signed in to change notification settings

nasirHo/Linux_Socket_Practice_Chatroom

Repository files navigation

Linux_Socket_Practice_Chatroom

linux socket programming practice -- a more to more chatroom implement by cpp

Build

Dependency

  • Ubuntu 18.04
    • build-essential
    • cmake (>3.8)
    • libncurses-dev
    • libncursesw5-dev
sudo apt install build-essential cmake libncurses-dev libncursesw5-dev
  • Arch
    • base-devel
    • cmake
    • ncurses
sudo pacman -S base-devel cmake ncurses

Compile

  1. clone lastest version from the repository
git clone https://github.com/nasirHo/Linux_Socket_Practice_Chatroom
  1. cd to this directory
  2. create a build directory and enter it
mkdir -p build && cd build
  1. generate cmake configuration
cmake ..
  1. build
cmake --build .
  1. You can find executable in bin directory
cd bin

Usage

  1. Start the server
./chatroom_server
  1. Start the client
./chatroom_client_ncures
  1. Enter your name
  2. Start Chatting
  3. Type /quit to leave

Limitation

- Chinese word cannot display

  • Clients count has limit
  • UI might wrong when terminal resized
    • the behavior now is leave chat

About

linux socket programming practice -- a more to more chatroom implement by cpp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published