是服务发现旨在用于发现您正在寻找的打印机或网页之类的服务.您可能使用的一种解决方案是查找所有服务并查询该服务的每个实例.每个实例都有一个名称和一个IP,您可以将其与电话的IP进行比较.好吧,我觉得这很丑.Service discovery is meant to be used to discover a severice you're looking for like a printer or a webpage.One solution you might use is to find all services and query for each instance of the service. Each instance has a name and an ip which you can compare to the phone's ip. Well this is quite ugly I think.是几乎每种语言都有库...在您喜欢的搜索引擎中搜索c ++服务发现,您会发现很多(或另一个带有一个或多个链接的so-thread)There are libs in almost every language... search for c++ service discovery in your favourite search engine and you will find plenty (or another so-thread with links to one or more) 这篇关于使用dns-sd进行服务发现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-07 08:29