Giter VIP home page Giter VIP logo

chatroom's Introduction

Chatroom

NCKU EE_OS_2022 Project 2 Many-to-Many Chatroom

Step to run the Chatroom

  1. Clone this repository
git clone https://github.com/410011max/Chatroom.git
  1. Run the following commands in your terminal :
make

or

g++ server.cpp -lpthread -o server
g++ client.cpp -lpthread -o client
  1. To run the server application, use this command in the terminal :
./server
  1. Now, open another terminal and use this command to run the client application :
./client
  1. For opening multiple client applications, repeat step 4 in other terminal.

Step to use the Chatroom

  1. Sign in or Sign up: enter the user name and the password (if not sign up yet, it will automatically sign up).
  2. After entering the chatroom, you(client) can send message to the chatroom, and everyone in the room can see the message.
  3. Special manipulation/message.
  • on client terminal:
    • Summon cute sticker to your friends: enter "#" +"0"~"9."
    • Randomly picking one user: enter "#lotto."
    • Exit the chatroom: enter "#exit."
  • on server terminal:
    • Terminate all client and server threads: enter "#exit."
    • Remove a user: enter "#remove", and then enter the target's name.
    • Clear all user data: enter "#clear."

chatroom's People

Contributors

max410011 avatar therookie2021 avatar wen789664 avatar weifan1128 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.