Coder Social home page Coder Social logo

cpe_701_final_project's Introduction

CPE_701_final_project

This is our implementation of the final project. It is nearly 3000 lines of code.

Building & Compiling

The project depends on mhash library to calculate crcs. In ubuntu (debian) based systems it can installed by typing sudo apt-get install libmhash-dev. This is by far the most common distro. Refer to distro's documention ( package manger)

We used Slackware linux so we installed the mhash libray using the slackware pack age manger (pkgtool). The entire thing was written in C using the vim editor.

After mhash library is installed type make to build the system

Notes

  • I removed many calls to free(), beware there are memory leaks. There is a bug somewhere - I just masked it out.
  • Set the socket options to reuse the socket ( in server code). Too lazy to do it now, but you figure it out okay

Usage

To start the program , type ./nfdapp "node_id" "itc_filename" to start the program.

Commands Supported

By default it puts lots of messages on screen , they are done by separate threads so one should be able type into the shell. (its little inconvinient though).

(1) start_sevice "max_connections" : starts the service wiht max connections provided, stats the listening thread. Make sure that this is done as immediately as possible. (or increase the ROUTE_DELAY contanst) so that routing packets do not grab the socket before server does a bind.

(2) download "from_node_id" "filename" : downloads filename from node_id

(3)set_garbler "loss" "corruption" : sets the garbler characteristics

(4) route_table: dumps the route table to route_table.txt

(5) link_down "node_id" : updates the routing table of current node , so that link is down

(6) link_up <node_id> : updates the routing table of current node so that link is up

(7) exit : exits the program

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.