Coder Social home page Coder Social logo

isopropylcyanide / rip-posix-threads Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 14 KB

An attempt to implement the routing information protocol using POSIX Threads (C Language).

Makefile 1.46% C 98.54%
routing-protocols posix-threads posix c network networking c-programming makefile router

rip-posix-threads's Introduction

An attempt to implement the routing information protocol using POSIX Threads (C Language).

Contribute

You are free to suggest changes.

  • Clone the repository
  • Create a new branch on local
  • Merge changes from remote on to the local branch
  • Work and push changes

Usage

  • Type 'make' in the terminal for the output (already provided makefile)
  • Add the changes to the C source

About

This is a very light implementation of Routing Information Protocol (Networking) using POSIX Threads.

The idea is to have some n number of files in the directory names ($n.txt). These files represent routers. In each file there are three space separated columns.

Col-1 Col-2 Col-3

  • Col-1: This is the name of the router file.

  • Col-2: This is the distance between the router whose name is specified in col-1 and with the router whose file you have currently opened. If this distance is: "1" : directly connected "2" : connected at a distance of 2 metres. (1 metre for directly connected) ... "16": not reachable, infinite distance.

    Hence, the maximum distance reachable is 15

  • Col-3: This specifies the next hop destination to reach the router whose name is specifies in Col-1. A hop of 0 , means no hop is required. Initially, there are obviously no hops


What all can I do

  • Add a router. You don't create a new file. The new router remains in memory. The initial router files are just for initiation since I needed File Handling as the initialisation approach.
  • Fail a link:
  • Add a link:
  • Invalidate a router
  • Revalidate a router
  • Exit simulation:

All of these actions have been carefully studies and implemented. I would appreciate if someone could come up with their bugs or an efficient code perhaps.

rip-posix-threads's People

Contributors

isopropylcyanide avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

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