GithubHelp home page GithubHelp logo

ipvchat's Introduction

IpvChat

Structure

This project is split in two environments, and consequently two folders: client and server. Both environments are configured with Cmake, and will work out of the box on any linux distribution (windows and macOS untested) with an up-to-date Cmake installation.

Usage

Client

Start the client by running {projectRoot}/client/build/client with no arguments, assuming the app is already built. This will open a command prompt with whom you can interact to initiate client-side actions.

Type in commands to get a list of all available commands and their description. When it comes to our use-case, we won't need anything other than the following four directives:

test - Test connection to server
connect - Connect to server
disconnect - Disconnect from server
login - Login to server
join - Join a channel

Here are some examples of usage:

test 127.0.0.1 8080 // test <ip> <port>
connect 127.0.0.1 8080 // connect <ip> <port>
login user // login <username>
join general // join <channel>
disconnect // disconnect from the server you are currently connected to 

Server

Once you fully understand how the client works, you'll need to get the server up and running. Again, assuming it is already built, run {projectRoot}/server/build/server <ip> <port> , <ip> and <port> being the IP address and port number you want your server to be reachable at.

You should see a short log message similar to the one below if everything did start properly:

Server started on XXX.XXX.XXX.XXX:XXXX

In case of failure, try another port, it's often caused by another application already using it.

Requests

Currently, the server does not support creating new channels, or users on the fly. However, this would be pretty easy to implement with the current architecture.

Here is again an example of usage:

ClientConsole> connect 127.0.0.1 8080
Connection successful
127.0.0.1:8080> login J0hn
Logged in as J0hn
[email protected]:8080> join general
J0hn: Hey
Response: success OK

ipvchat's People

Contributors

bsodium avatar

Watchers

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