Git Product home page Git Product logo

multicast-test's Introduction

Multicast Test Tool in Python2/3

$ ./mctest.py
usage: mctest.py [-h] [-send string] [-receive]
                 [-group Multicast Group default: 232.8.8.8] [-port UDP Port]
                 [-ttl int] [-v]

Multicast Send/Receive Test Tool

optional arguments:
  -h, --help            show this help message and exit
  -send string          Send a Message
  -receive              Receive Messages from Group
  -group Multicast Group (default: 232.8.8.8)
  -port UDP Port        UDP Port to receive on (default 1900)
  -ttl int              Multicast TTL (default 10)
  -v                    Verbose Output

Receive Example (uPNP Traffic)

$ ./mctest.py -rec -group 239.255.255.250 -port 1900
Listing on 239.255.255.250 port 1900
Received on 239.255.255.250 from 10.26.73.211 from port 1900: NOTIFY * HTTP/1.1
HOST: 239.255.255.250:1900
CACHE-CONTROL: max-age=60
LOCATION: http://10.26.73.211:6432/description.xml
NT: upnp:rootdevice
NTS: ssdp:alive
SERVER: lwIP/1.3.2
USN: uuid:upnp_MDL-S2E-c0a26d004ba8::upnp:rootdevice

Send Example with Receive

./mctest.py -send 'test from imac'
Sending to 232.8.8.8 (TTL 10): test from imac: 2017-07-17 11:23:29
Sending to 232.8.8.8 (TTL 10): test from imac: 2017-07-17 11:23:30
Sending to 232.8.8.8 (TTL 10): test from imac: 2017-07-17 11:23:31

Receiver

./mctest.py -rec
Listing on 232.8.8.8 port 1900
Received on 232.8.8.8 from 128.23.200.25 from port 51596: test from imac: 2017-07-17 11:23:29
Received on 232.8.8.8 from 128.23.200.25 from port 51596: test from imac: 2017-07-17 11:23:30
Received on 232.8.8.8 from 128.23.200.25 from port 51596: test from imac: 2017-07-17 11:23:31

multicast-test's People

Contributors

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