带有Windows RT的C#TCP套接字服务器 [英] C# TCP Socket Server with Windows RT
本文介绍了带有Windows RT的C#TCP套接字服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在寻找,我似乎无法找到这个简单问题的答案。有没有办法在Windows RT(Win / WP 8.1)C#应用程序中创建TCP服务器?
PS。这将最终用于开发兼容HTML的WebSocket服务器。
解决方案
看起来是的,我现在正在研究这个问题。 我正在尝试创建一个RESTful HTTP接口来远程控制我的应用程序。 查看脱机HTTP服务器中的代码 http://offline.codeplex.com/。  它使用
StreamSocketListener。  事实上它可能已经完成了所有需要它做的事。
这是另一个好页面。    HTTP://www.dzhang.com/blog/2012/09/18/a-simple-in-process-http-server-for-windows-8-metro-apps
I have been searching quite while and I cannot seem to be able to find an answer to this simple question. Is there any way to create a TCP server in a Windows RT (Win / WP 8.1) C# application?
PS. This will ultimately be used in the development of an HTML compatible WebSocket server.
解决方案
It would appear yes, I'm researching this currently as well. I'm trying to create a RESTful HTTP interface for remote control of my app. Check out the code in the Offline HTTP Server http://offline.codeplex.com/. It uses the StreamSocketListener. In fact it might just already do everything need it to do.
This is another good page. http://www.dzhang.com/blog/2012/09/18/a-simple-in-process-http-server-for-windows-8-metro-apps
这篇关于带有Windows RT的C#TCP套接字服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文