Giter Club home page Giter Club logo

simple-muticast's Introduction

Simple-MCAST

简单的多播服务端和客户端。

实验目的

了解单播、广播和多播的区别,熟悉多播的实现原理和编程框架,掌握多播服务器和客户端的功能区分。

实验要求

  1. 阅读课本第11章;
  2. 了解单播、广播和多播的原理;
  3. 了解多播的编程框架;
  4. 编写多播的服务器端和客户端:
    多播服务器端发送本地的一个文件到多播地址;
    多播客户端加入多播组,接收多播服务器发送的数据;
    多播客户端把接收的数据放到本地文件中,统计接收的字符数;
    多播客户端正常退出;

Usage

Usage: ./simple-mcast [-s] [-a 224.0.0.88] [-p 5555] [-f FILE]
 -s, --server      start as a server
 -a, --addr IPv4   set address (numbers-and-dots notation)
 -p, --port NUM    set port
 -f, --file FILE   upload/save filepath
 -h, --help        display this message and exit

服务端:

# 多播地址为 224.0.0.88
# 端口号为 5555 
# 上传文件为 test.txt
./simple-mcast -s -a 224.0.0.88 -p 5555 -f test.txt

客户端:

./simple-mcast -a 224.0.0.88 -p 5555

Notes

simple-muticast's People

Contributors

qing-lky 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.