2
我正在编写一个应用程序,它可以在2个iPhone之间传输图像。我使用Apple提供的许多示例代码来创建网络流(https://developer.apple.com/library/IOS/samplecode/SimpleNetworkStreams/Introduction/Intro.html)。NSNetService initWithDomain使用本地IP地址?
我的问题是是否需要在该行通过其他iPhone的本地IP地址下面,而不是“本地”:
self.netService = [[NSNetService alloc] initWithDomain:@"local." type:@"_x-SNSDownload._tcp." name:@"Test" port:port];
的感谢!