iOS应用程序和.NET应用程序之间的通信?
我有2个应用程序,一个是iOS应用程序,一个是.NET应用程序.我希望我的iOS应用发送一条消息(调用.NET应用的方法,向.NET应用发送一些字符串以保存到数据库).那么,我的iOS应用如何与.NET应用通信?
I have 2 applications, one is iOS app and one is .NET app. I want my iOS app send an message (call a method of .NET app, send some string to .NET app to save to database). So, how can my iOS app can communicate with .NET app?
如果您要与本地网络上的桌面应用程序进行通信,则可以使用Bonjour发现(也称为ZeroConf)进行操作.Apple可以免费提供Windows的Bonjour SDK for Windows ,因此它似乎相当容易与您的桌面.NET应用程序集成.Bonjour已经作为iPhone SDK中的网络服务的一部分出现.
If you're looking to communicate with a desktop application on a local network, Bonjour discovery (also called ZeroConf) may be the way to go. Apple makes the Bonjour SDK for Windows freely available, so it appears to be reasonably easy to integrate with your desktop .NET application. Bonjour is already present as part of the networking services in the iPhone SDK.
使用Bonjour,您可以从台式机客户端透明地检测在本地网络上运行应用程序的iPhone的存在(反之亦然),从而使连接这两个过程变得微不足道.建立网络后,您可以在两者之间发送所需的任何数据.我在
Using Bonjour, you can transparently detect the presence of an iPhone running your application on the local network from your desktop client (and vice versa), making the process of connecting the two trivial. Once networked, you can send whatever data you want between the two. I show an example of this in action in the video for the networking portion of my advanced iPhone development course on iTunes U.