Giter Club home page Giter Club logo

p2pchat's Introduction

P2PChat - an experimental approach for P2P chatting in dynamic networks

Project Overview

We want to create a chat application that allows for Peer to Peer chatting in a mesh network where nodes can connect/disconnect dynamically. The chat application operates without a central master server, i.e. each individual node routes received messages according to a set of routing instructions which are updated whenever the network topology changes.

The chat application itself will only have a rudimentary feature set, and the focus of the project will be on the following stuff:

  1. Implemeting an efficient method for updating the routing information of affected nodes whenever a node connects or disconnects from the network
  2. Implementing an optimized routing algorithm (based on existing shortest-path algorithms) for routing chat messages from one node to any other node in the network.

Installation

  1. Get a working version of the TEDA environment running on your machine
  2. Clone this repo inside the apps directory so that you have something like /teda_light_2/apps/p2pchat
  3. That's it.

Deployment

In the p2pchat dir, deploy the app to TEDA using the provided scripts

  1. $ ../../scripts/depl_app.sh p2pchat make hosts_alive.conf
  2. $ ../../scripts/depl_enodes.sh p2pchat hosts_alive.conf

Running the application

First start by deploying a network of completely connected erlang nodes

$ ../../scripts/run.sh p2pchat "network:run()" hosts_alive.conf diufpc81.unifr.ch <username>

Then you can attach one or multiple chat clients to one of the nodes in the network:

$ erl -make
$ erl
> c(client).
> client:run().

... open another shell in the same directory
$ erl
> c(client).
> client:run().

p2pchat's People

Contributors

knorrli avatar jugglinghobo avatar dareios avatar

Stargazers

 avatar Arvand Azadvar avatar

Watchers

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