Coder Social home page Coder Social logo

feup-sdis's Introduction

FEUP SDIS 18/19 - Project 1

Compiling

The project can be compiled using ant. The configuration build.xml file is on the root of this directory, therefore ant should run on the said directory.

Project documentation, javadoc, can be generated using ant javadoc.

Alternatively, the compile.sh script can be used.

./compile.sh

Running

Rmiregistry

Run rmiregistry before launching the server our the client. You must run this tool in the bin directory.

Launching peers

For launching peers, a shell script is provided: run_peer.sh. For making the testing purpose easier, all multicast channels and ports are defined as variables in this script (MC_ADDR, MCB_ADDR, MCR_ADDR). Due the lack of enhancements, the protocol version is also defined as variable on this script.

Access point names are also defined automatically based on the peer indentifier. For example, if the peer identifier is 1, then the access point is peer_1. The general format is peer_<peer id>.

The only variable parameter is the peer identifier which is specified as an argument.

./run_peer.sh 1

The example launches a peer whose identifier is 1.

Launching test application

Similiarly to peers, in order to launch the test application another shell script is provided: run_test_app.sh.

The general syntax for this script is ilustrated below:

./run_test_app.sh <peer id> <operation> <oper1> <oper2>

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.