Giter VIP home page Giter VIP logo

udpmulticast's Introduction

实现局域网内 Android 设备相互发现

用于局域网中,在不知道设备的内网IP的情况下,通过UDP组播搜索局域网内所有的的设备

udp组播原理,请见我的博客 http://blog.csdn.net/lixin88/article/details/55209630

对应的代码实现说明,请见 http://blog.csdn.net/lixin88/article/details/56013014

使用说明

  • app只需要集成LANDiscoveryLib 这个library工程,具体调用,如果是搜索者请参考 phoneClient中的调用,如果是被搜索者请参考tvServer中的调用。
  • client 包下,对应搜索者;server 包下,对应被搜索者;
  • base 包下 均为封装的一些交互数据和udp包格式等;用户可以自定义搜索请求数据RequestSearchData,以及搜索到设备时,设备返回的数据DeviceData

udpmulticast's People

Contributors

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