Git Product home page Git Product logo

auction's Introduction

Auction

Requirements

running platform : python2.7 software needed if play streaming : mplayer python module needed : m3u8

sudo apt-get install mplayer
sudo pip install m3u8

energy module:

apt-get install python-smbus
sudo vi /boot/config.txt
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
#dtparam=spi=on

Run

Usage of auctioneer :

usage: auctioneer.py [-h] [-p PEER] [-s SEGMENT] [-c CAPACITY] [-t TIMECOST]
                     [-l LTE] [-w WIFI] [-d DELAY] [-a BROADCAST]

Auctioneer

optional arguments:
  -h, --help            show this help message and exit
  -p PEER, --peer PEER  name of peer
  -s SEGMENT, --segment SEGMENT
                        segments per auction
  -c CAPACITY, --capacity CAPACITY
                        initial capacity
  -t TIMECOST, --timecost TIMECOST
                        rebuffer time cost coefficient
  -l LTE, --lte LTE     lte cost coefficient
  -w WIFI, --wifi WIFI  WiFi cost coefficient
  -d DELAY, --delay DELAY
                        delay of data transport.
  -a BROADCAST, --broadcast BROADCAST
                        udp broadcast address

To stop auctioneer :

Ctrl+C or input [exit]

Usage of bidder :

usage: bidder.py [-h] [-p PEER] [-u URL] [-s] [-t THETA] [-q QUALITY]
                 [-b BUFFER] [-m MBUFFER] [-a BROADCAST]

Bidder

optional arguments:
  -h, --help            show this help message and exit
  -p PEER, --peer PEER  name of peer
  -u URL, --url URL     url to play
  -s, --silent          not play video actually
  -t THETA, --theta THETA
                        bidder preference theta
  -q QUALITY, --quality QUALITY
                        bidder quality coefficient
  -b BUFFER, --buffer BUFFER
                        bidder buffer coefficient
  -m MBUFFER, --mbuffer MBUFFER
                        bidder max buffer
  -a BROADCAST, --broadcast BROADCAST
                        udp broadcast address

To stop auctioneer :

Ctrl+C or input [exit]

Run of log :

usage: log.py [-h] [-l LOGFILE]

Logger

optional arguments:
  -h, --help            show this help message and exit
  -l LOGFILE, --logfile LOGFILE
                        file name of the log.

Exit of log :

Ctrl+C

Example :

python log.py
# firstly open log at one terminal.
python auctioneer.py -p A -s 5
# secondly open auctioneer named A ,and set number of segment to be 5.
python bidder.py -p B -s
# thirdly open bidder name B, which  not actually play but just download.

auction's People

Contributors

jzh14 avatar neilsoul avatar

Watchers

 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.