简体   繁体   中英

how to send file from Windows-CE to PC Through Socket

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?

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 .

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM