Git Product home page Git Product logo

console-serverless-chat's Introduction

Console serverless chat

This is a simple example of how can peer-to-peer communication can be organized. As an illustrative example was chosen a hackneyed topic of chats. Having a set of PC's, virtual machines or whatever, you can configure this application by specifying its peer IPs in chat_config.xml file (which needs to be placed near the .exe).

After starting the application, anyone can send a message and each peer (other connected participant) will resend received message to its own peers and so on. Finally, the sended message from one point will be delivered to any other one. You can choose any network topology (configuration of peers set).

For example, for this configuration: Alt text

you need to specify such peers configuration (shown for 'host'):

<?xml version="1.0" encoding="utf-8" ?>
<peers>
  <peer>172.25.142.241</peer>
  <peer>172.25.134.87</peer>
  <peer>172.25.136.66</peer>
</peers>

As you can see, peers configuaration considers the directions of peer-to-peer route, which increases the number of options of how peers can be organized.

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.