如何通过Socket从Windows-CE向PC发送文件
如何通过套接字将文件从 Windows-CE 发送到 PC
(以及从 PC 到 Windows-CE)
我可以获得任何示例 C# 代码吗?
how to send file from Windows-CE to PC Through Socket
(and from PC to Windows-CE)
can i get any sample C# code for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
一般来说,通过套接字传输文件与操作系统无关,因此问题的“Windows CE”部分并不重要。您需要发送代码和接收代码。很好的是,网上有很多这样做的例子。 这是一个。 这是另一个。 还有另一个。
Transferring a file through a socket is, in general, OS agnostic so the "Windows CE" part of the question doesn't matter much. You'll need both code for sending and code for receiving. Nicely enough there are plenty of examples online for doing this. Here's one. Here's another. And yet another.
我建议最简单的方法可能是通过 FTP 来完成,因为这样您就可以在 PC 上安装任何 FTP 服务器,而不必担心它。
因此,查看 套接字 类说它受 Windows CE 支持。将其与 FTP RFC 结合起来,然后在 google 上搜索“C# ftp 客户端”,你应该已经有足够的资料来开始了。
这似乎是一个库,可能已经为您编写了所有代码:OpenNETCF FTP Library
I'd suggest that the easiest way might be to do it via FTP, since then you can just install any FTP server on the PC and don't have to worry about it at all.
So looking at the Socket Class it says that it's supported by Windows CE. Combine that with the FTP RFC and then do a google search for "C# ftp client" and you should have enough to get you started.
This seems to be a library that might have all that code written for you already: OpenNETCF FTP Library