GithubHelp home page GithubHelp logo

bikashsahoo1636 / adhocnetworking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spandankumarsahu/adhocnetworking

0.0 2.0 0.0 41 KB

Ad-hoc network creation

Python 23.26% Shell 9.96% C++ 66.78%

adhocnetworking's Introduction

  How to Run :

        1. Place the codes in all the devices. ( Turning off proxy suggested)
        2. Get into the root. ( Type sudo -i ) - Necessary because netwrok creation can only done in sudo mode.
        3. Go into the directory of the code.
        4. May have to grant permissions to all the files. So type, chmod +rwxrwxrwx *
            (This needs to be done once, before the script is run for the first time ever)
        5. Type python Starter.py
        6. This will get you all the devices connected.
        7. Incase you want to run a server client model, we had designed one.
            In the Starter.py file, I have commented out two lines. Just uncomment them and run Starter.py again
        8. Please read AddToStartup document.
         
Note:
        1. The server-client model was not tested well enough. It has some bugs:
            a) Untill all the clients are connected with the server, the server won't update any of the client's information.
            b) There is some algorithmic fault, that the information gets updated wrongly.
        2. Other possible errors might include:
            a) I have assumed this to be run on devices running Ubuntu 14.04. Network Manager has to be installed.
            b) python interpreter must be present
            c) This is only if you run the client-server model:
                Though by default ( in Ubuntu 14.04 ) the first IP is automatically assigned 10.42.0.1, if the starting system has 
                different IP, then open client.cpp and change 10.42.0.1 to the IP. and do the same in call_client.sh and server.cpp
                To view IP of your current connection, type ifconfig.
            d) In the rarest of the rarest case, you might be already using the same socket. In that case, simply change 17000 to any number 
                between 10000 and 50000 in both call_client.sh and call_server.sh
            e) Another assumption that all devices have wifi interface as wlan0.
                By default, it should be wlan0 and all devices presumably have this one. If you have multiple wifi devices and change it to
                something else, you may need to go through codes.

For further help:
 mail to : [email protected]

adhocnetworking's People

Contributors

spandankumarsahu avatar

Watchers

 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.