iOS的应用程序和.NET应用程序之间的交际?应用程序、iOS、NET

2023-09-04 03:12:08 作者:亲一口

我有2个应用程序,一个是iOS应用,一个是.net应用程序。我希望我的iOS应用程序发送消息(调用.NET应用程序的方法,发送一些字符串到.NET应用程序保存到数据库)。那么,如何让我的iOS应用程序可以与.NET应用程序的comunicate?任何人都可以帮助我。 感谢:)

I have 2 application, 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 comunicate with .NET app? Anybody can help me. Thanks :)

推荐答案

如果你正在寻找一个本地网络上的桌面应用程序进行通信,卓悦发现(也称为零配置)可能是要走的路。苹果让卓悦SDK的Windows 免费提供的,所以它看起来是相当容易集成与您的桌面.NET应用程序。卓悦已经是present作为在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上运行您从您的桌面客户端(反之亦然),在本地网络上的应用,使得连接两个平凡的过程中,presence。一旦联网,您可以发送任何数据你要在两者之间。我表现出这样的例子在我的先进的iPhone发展历程上的iTunes U 。

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.