Giter Club home page Giter Club logo

Comments (2)

mbalmer avatar mbalmer commented on August 22, 2024

Here is some logcat output, the code runs for 30 seconds, apparently something is found by MdnsDiscoveryManager, but not returned to the stream:

2024-05-25 12:04:23.842 25445-25493 flutter                 ch.msys.trx_control                  I  trx-control: start discovery
2024-05-25 12:04:23.845  1501-1798  serviceDiscovery        system_server                        I  [MdnsDiscoveryManager] Registering listener for serviceType: _trx-control._tcp.local
2024-05-25 12:04:24.948  1501-1798  serviceDiscovery        system_server                        I  [MdnsDiscoveryManager._trx-control._tcp.local-104/40] Handling response from service: trx-control (trxd) on trx-control-w2, newServiceFound: false, serviceBecomesComplete: false, responseIsComplete: true
2024-05-25 12:04:53.856 25445-25493 flutter                 ch.msys.trx_control                  I  trx-control: stop discovery
2024-05-25 12:04:53.860  1501-1798  serviceDiscovery        system_server                        I  [MdnsDiscoveryManager] Unregistering listener for serviceType:_trx-control._tcp.local

from flutter_nsd.

mbalmer avatar mbalmer commented on August 22, 2024

I turns out that the service name matters. If I try to discover "_trx-control._tcp" it is found on iOS, but not on Android. If I add a dot ("_trx-control._tcp.") then it is discovered on iOS and Android. This is weird, and maybe worth mentioning in the docs?

from flutter_nsd.

Related Issues (20)

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.