Windows中的网络文件传输 [英] Network file transfer in Windows
本文介绍了Windows中的网络文件传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用C或C ++在网络上传输文件.我应该查找哪些主题?我该怎么办?
解决方案
虽然您可以使用 TransmitFile
API,使您能够读取文件数据并通过一个系统调用通过套接字将其发送.>
I want to transfer files across the network using C or C++. What topics should I look up? How can I do this?
解决方案
While you could use ReadFile
to read the file's contents and then send it over a socket, Windows also provides the TransmitFile
API to enable you to read a file's data and send it over a socket with one system call.
这篇关于Windows中的网络文件传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文