windows - Windows 8 应用商店应用程序可以通过 UDP/TCP 套接字与 Windows 7 桌面应用程序通信吗?

标签 windows sockets networking websocket

详细说明情况:我们有两个应用程序,为简单起见,我们将它们称为 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/

相关文章:

c# - 两种方式通信的服务器/客户端架构?

c# - 将传感器数据对象转换为字节数组 (C#)

java - 真的有必要使用 url.openConnection() 吗?

python - 在 python 中,在 Windows 上,如何等到鼠标移动?

c++ - 什么在Windows Server 2003上使用了这么多未提交的 “private data”?

windows - NHibernate.InstantiationException 无法加载测试类型 : <Foo>

C# 套接字 : synchronous calls within asynchronous ones

windows - VS2012 调试器错误 - "Connection request was rejected .. Ensure ... debugger is running in ' 无身份验证模式。”

python - 我怎样才能让 send() 阻止 UDP?

r - 如何更改节点的颜色?