详细说明情况:我们有两个应用程序,为简单起见,我们将它们称为 A 和 B。两者都在 Windows 7 上开发和运行,它们可以使用 UDP/TCP 进行连接和通信。现在我们要将 App B 转换为 Windows 8 以利用 Metro UI。我们是否需要对 App A 中的网络代码进行大量更改?它甚至可以继续在 Windows 7 上运行并与运行在 Windows 8 上的 App B 通信吗?据我了解,Win8 处理套接字的方式与以前的 Windows 略有不同,因此我表示怀疑。
最佳答案
只是从不同的角度来看,通信在技术上是可行的,但是 explicitly forbidden (假设您要在 Windows 应用商店中发布您的应用):
3 Windows Store apps behave predictably
3.1 You must use only the Windows Runtime APIs to implement the features of your Windows Store app
We describe these APIs in the Windows Store apps API reference. Your app may only depend on software listed in the Windows Store.
Windows Store apps must not communicate with local desktop applications or services via local mechanisms, including via files and registry keys.
如果这是您要为企业使用而侧载的内容,请忽略此答案。
关于windows - Windows 8 应用商店应用程序可以通过 UDP/TCP 套接字与 Windows 7 桌面应用程序通信吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15448207/