从windows手机控制windows pc [英] Controlling windows pc from windows phone
问题描述
我正在Visual Studio-15中构建一个关于Windows手机和Windows PC之间通信的C#项目。将文件(.pdf,.docx)等从Windows移动设备发送到Windows PC的通信。
两台设备都在Windows 8.1上运行
我尝试过以下链接,但根据我的项目,这没有帮助。
尽快需要你的指导
谢谢。
我的尝试:
http://www.codeproject.com/Tips/893352/Using-WCF-Service-in-Windows-Phone
I am building a C# project in Visual Studio-15 on communicating between a windows phone and a windows pc. Communication in terms of sending files(.pdf,.docx) etc from Windows mobile to windows PC.
Both the devices are running on Windows 8.1
I have tried the below link but this is not helping according to my project.
Need your guidance as soon as possible
Thank you.
What I have tried:
http://www.codeproject.com/Tips/893352/Using-WCF-Service-in-Windows-Phone
推荐答案
一个明显的选择是在服务器端使用可用的FTP服务器,然后另一端可以充当其客户端。具体方法如下: FtpWebRequest Class(System.Net) [ ^ ]。
显然,它可以是HTTP,但是你需要安装一些Web服务器和一些站点。 />
作为一种自定义方式,您可以使用经典.NET远程处理或更新的WCF。基本上,您可以在IIS中托管服务或自托管它,然后最合适的主机将是Windows服务应用程序。我建议学习WCF,它的知识迟早会得到回报:
什么是Windows Communication Foundation [ ^ ],
开发人员对Windows Communication Foundation 4的介绍 [ ^ ],
自托管Windows Communication Foundation服务 [ ^ ],
参见:
开发Windows服务应用程序 [ ^ ],
演练:创建Windows服务组件设计器中的应用程序 [ ^ ]。
-SA
One obvious option is using an available FTP server on the server side, then the other side can act as its client. This is how: FtpWebRequest Class (System.Net)[^].
Apparently, it can be HTTP, but then you would need to have some Web sever and some site installed.
As a custom way, you can use "classical" .NET remoting or newer WCF. Basically, you can host the service in IIS or self-host it, then the most adequate host would be a Windows Service Application. I would recommend to learn WCF, its knowledge should pay off sooner or later:
What Is Windows Communication Foundation[^],
A Developer's Introduction to Windows Communication Foundation 4[^],
Self Hosting Windows Communication Foundation Services[^],
See also:
Developing Windows Service Applications[^],
Walkthrough: Creating a Windows Service Application in the Component Designer[^].
—SA
这篇关于从windows手机控制windows pc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!