安全的 iPhone-桌面连接

发布于 2024-08-11 19:57:13 字数 637 浏览 5 评论 0原文

背景

有很多 App Store 发布的 iPhone 应用程序需要桌面上有一个基于 IP 的服务器,以便 iPhone 可以作为客户端连接到桌面。例如,有许多程序可以模拟 iPhone 上的键盘、触摸板或 Apple 遥控器,以便可以通过wifi控制台式电脑。然而,许多此类应用程序通过要求用户安装某些 VNC 服务器变体来绕过编写自己的服务器。

问题

在桌面(Mac 和 Windows 平台)上实现安全(加密)IP 服务器的最佳方法是什么,该服务器允许在其自身和 WiFi 网络上的 iPhone 客户端之间进行简单的双向消息传递?

示例用例

桌面上的事件导致桌面将小图像或文本推送到 iPhone。 iPhone 上的事件会导致一条短文本消息被推送到桌面。任何单个事件都可能随时发生(对用户来说并不同步)。

第一个后续问题

这种类型的项目最好使用 XML 或 JSON over HTTP 来处理吗?或者是否有更好的协议,例如 BEEP 或 Bonjour(XMPP)?

Background

There are a lot of App Store released iPhone apps that require an IP based server on the desktop so that the iPhone can connect to the desktop as a client. For example, there are many programs that emulate a keyboard, touchpad, or Apple remote on the iPhone so that a desktop computer can be controlled over wifi. However, many of these applications get around writing their own server by requiring the user to install some VNC server variant.

Question

What is the best way to implement a secure (encrypted) IP server on a desktop (Mac and Windows platforms) that allows for simple two way message passing between itself and an iPhone client on a wifi network?

Sample Use Case

An event on the desktop causes the desktop to push a small image or text to the iPhone. An event on the iPhone causes a short text message to be pushed to the desktop. Any single event can happen at any time (doesn't appear synchronized to the user).

1st Follow-Up Question

Would this type of project be best handled using something like XML or JSON over HTTP? Or is there a better protocol, like BEEP or Bonjour(XMPP)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

天暗了我发光 2024-08-18 19:57:13

在桌面(Mac 和 Windows 平台)上实现安全(加密)IP 服务器的最佳方式是什么,该服务器允许在 WiFi 网络上在其自身和 iPhone 客户端之间进行简单的双向消息传递?

确定是否有“最佳”方法,但是已经有很多代码可用于执行 xyz-over-HTTPS ( TLS/SSL)。在这种情况下,“xyz”可以是任何基于 Web 的消息交换协议,例如通过 REST 或 SOAP 等的 XML、JSON 等。

What is the best way to implement a secure (encrypted) IP server on a desktop (Mac and Windows platforms) that allows for simple two way message passing between itself and an iPhone client on a wifi network?

Not sure if there is a "best" way, but much code is already available to do xyz-over-HTTPS (TLS/SSL). In that case, the "xyz" can be any web-based message exchange protocol, such as XML, JSON, etc. via REST or SOAP, etc.

原野 2024-08-18 19:57:13

如果您希望能够将事件推送到未越狱的 iPhone,则只能通过 Apple 的推送服务器,如果客户端程序正在运行,则会向客户端程序发出通知,或者以其他方式向用户显示某种警报。

典型的架构将这些通知由客户端程序处理,作为它应该从服务器获取一些数据的指示 - Apple 坚持认为我们不将通知视为可信传递。

我建议阅读这篇文章,了解如何使用 Bonjour 和本地网络,虽然它是 iPhone 到 iPhone,但它也应该适用于桌面 OS/X。

If you want to be able to push events to a non-jailbroken iPhone you can't do it other than via Apple's Push Server which causes a notification to the client program if it is running or otherwise displays an alert of some kind to the user.

Typical architecture has those notifications handled by the client program as an indication it should go and get some data from the server - Apple insist we do not regard the notifications as trusted delivery.

I suggest a read of this article on using Bonjour and local networking, whilst it's iPhone to iPhone it should apply to desktop OS/X also.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文