【问题标题】:Bonjour functionality in iPhoneiPhone 中的 Bonjour 功能
【发布时间】:2010-12-18 06:14:49
【问题描述】:

我是 bonjour 网络的新手。我想找到所有使用 bonjour 功能的设备。现在我正在使用“斯坦福”提供的示例代码。通过使用它,我只能找到我的设备,我无法找到同一域下的剩余设备。

我正在使用的发布:

self.netService = [[[NSNetService alloc] initWithDomain:@"" type:@"_sampleservice._tcp." name:[UIDevice currentDevice].name port:port] autorelease];
[self.netService publishWithOptions:NSNetServiceNoAutoRename];

浏览同一网络:

[_browser searchForServicesOfType:@"_sampleservice._tcp" inDomain:@""];

通过使用这个我能够找到我自己的设备名称,但我想检测周围所有设备都具有相同的网络。

请帮助我。非常感谢。

【问题讨论】:

    标签: iphone networking bonjour


    【解决方案1】:
    猜你喜欢
    • 1970-01-01
    • 2011-05-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-12-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多