Git Product home page Git Product logo

mcserv's Introduction

mcserv

An Erlang multicast file transfer application

Build

$ make

Start server

$ make run

Server config

config/sys.config:
{mcserv,
  [
   {rate, 1000}, % stream rate, KB/s
   {packet_size, 1470}, % UDP packet size
   {file_path, "/tmp/mcserv.bin"}, % file to stream
   {mcast_address, {224, 2, 2, 4}}, % multicast address
   {mcast_port, 1111}, % multicast port
   {http_port, 8224} % http port to listen to metadata requests
  ]}

Client usage

$ _build/client/bin/mcclient
Usage: mcclient [OPTION] URL

  -p  path to save a file, default current directory
  -t  timeout to detect lost packets, ms, default 5000
  -l  packet loss emulation, percentage, can be float, default 0

Example

This example receives a file using metadata from the multicast server 192.168.2.1

$ _build/client/bin/mcclient -l 0.1 -t 1000 http://192.168.2.1:8224

Client emulates 0.1% packets loss and uses 1s correction timeout.

mcserv's People

Contributors

altrg avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

d-podkorytov

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.