Giter Site home page Giter Site logo

the host is empty about qtzeroconf HOT 4 CLOSED

jbagg avatar jbagg commented on August 20, 2024
the host is empty

from qtzeroconf.

Comments (4)

0x000000FF avatar 0x000000FF commented on August 20, 2024

in file bonjour.cpp,line 194,after
if (hAddress.protocol() == QAbstractSocket::IPv6Protocol) ref->newService->ipv6 = hAddress; else ref->newService->ip = hAddress;
I insert this line
ref->newService->host = hostName;

and it shows hostname.
thanks

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

Yes, it looks like hostname was missing ios/macos/windows. Do you want to make a pull request for me?

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

...the Q_UNUSED(hostName); line 180 should be removed as well.

from qtzeroconf.

jbagg avatar jbagg commented on August 20, 2024

...and please use TABs only.

I'm wondering if
ref->newService->host = hostName;
(maybe on line 155 ;)
belongs in QZeroConfPrivate::resolverCallback() as hostName is just working its way to addressReply()

from qtzeroconf.

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.