请,如何接收使用TransmitFile函数传输的填充? [英] Please, how does one receive a fille transmitted using TransmitFile function?

查看:253
本文介绍了请,如何接收使用TransmitFile函数传输的填充?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问,如何接收使用TransmitFile函数传输的文件?

如果在客户端服务器应用程序中使用TransmitFile函数将文件从服务器传输到客户端,例如,客户端如何接收传输的文件?
必须使用Recv函数吗?如果不是,我在哪里可以找到示例代码,该示例代码显示如何接收使用TransmitFile函数传输的文件?

Please, how does one receive a file transmitted using TransmitFile function?

If, in a client server application, TransmitFile function is used to trasmit file from, say, the server, to ,say, the client, how does one receive the transmitted file?
Must one necessarily use Recv function? If not,where can I get sample code of that shows how to receive file transmitted using TransmitFile function?

推荐答案

FTP [ ^ ]或TFTP [ ^ ]
the docs[^] say that TransmitFile is simply a send function optimised to read from the disk, so, yes - you''ll have to write your own ReceiveFile using recv

If you just want to move files around, I''d suggest that you don''t try to write your own protocol, but use FTP[^] or TFTP[^]


这篇关于请,如何接收使用TransmitFile函数传输的填充?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆