Git Product home page Git Product logo

qiaqia's Introduction

A command line chat application for geeks.

 _____     _       ___   _____     _       ___                         
/  _  |   | |     /   | /  _  |   | |     /   |            
| | | |   | |    / /| | | | | |   | |    / /| |    Welcome to QIAQIA(洽洽)
| | | |   | |   / / | | | | | |   | |   / / | |   
| |_| |_  | |  / /  | | | |_| |_  | |  / /  | |
|_______| |_| /_/   |_| |_______| |_| /_/   |_|

screenshot

click here to see the screenshot.

features

  • event based IO multiplexing concurrency model for qiaqia server(epoll).
  • support group chat and private chat.
  • You can choose to receive or not receive messages from specific online users(block or unblock).
  • support state query such as infomations of all online users and the users you blocked.

usage

    <message>               : send message to all online users that not block you.
    $ <commands>            : send a command to the qiaqia for state query.
    > <username> <message>  : send a message to a single user that not block you.
    # <username>            : block or unblock the messages from certain user 

example

    exit                    : disconnect to the server and leave.
    clear                   : clear the screen, just like the clear in bash.
    hello, guys!            : send 'hello, guys!' to all online users that not block you.
    $ show users            : show informations of all currently online users
    $ show blocked          : show the users that you blocked
    > Bob how are you?      : send 'how are you?' only to Bob if bob not block you.
    # Bob                   : block messages from Bob.
    # !Bob                  : unblock messages from Bob.
    # Mike !Amy ...         : block Mick and unblock Amy.

install

Qiaqia is made up of two components, the qiaqia_server and the qiaqia_client.

install by source

git clone https://github.com/Andrewpqc/qiaqia.git && cd qiaqia && mkdir build && cd build && cmake .. && make

install by binary

go to the release page to download the qiaqia binary package

start

Before you start qiaqia_client, you must make sure that qiaqia_server is already started on your local machine or anywhere network can reach.

You can start qiaqia_server like the following command:

qiaqia_server -p <port to be listen> -w <number of worker threads>

I already deployed a qiaqia_server on my machine at 120.77.220.239:8765, so you can a quick start like the following:

qiaqia_client -h 120.77.220.239 -p 8585

then,choose a pretty nickname for yourself and start. Enjory!

=========================
            +     
            +   +
            +      +
            +          +
            +             O 
            +
            +
            +
            +
            +
            +
=========================

qiaqia's People

Contributors

andrewpqc 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.