Click here to Skip to main content
15,914,066 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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?
Posted

1 solution

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[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900