Hi Quinn,
I didn't show it exactly but I exactly was passing my resolved hostname as the parameter for that 'ip'. I really just called it ip because I use the same function for my 'manual' connection option. you can see in those debug log screenshots above I think it reflects that its using the hostname in its attempted connection.
It totally would work, but I think given that it has a live music application I just wanted it to connect faster. if it got unplugged during a show I wouldn't want it to take so much time reconnecting while it sniffs out the scoped interface.
I've since changed my architecture such that the local daemon is itself the server client and the iOS app can connect directly to the daemon as a .service endpoint and it is so much faster so I think im happy with this solution.
The one thing that I feel like im missing in this scenario is how I would have been able to do that previous approach without possibly resolving. If your server is written in another language (in an implementation that has no access to zeroconf libraries) and you use this additional daemon as a way to advertise a path to that local server(put intended port number in txtRecord), resolving a hostname seems like the only way to me aside from changing the architecture such as I have. Thank you for your help on this!
Topic:
App & System Services
SubTopic:
Networking
Tags: