I'm using the TransmitFile API with I/O completion ports for an efficient multithreaded file server on Windows.
This all works fine, but I've now also implemented secure sockets using SChannel. Because TransmitFile streams the file directly to the socket, I don't see a way to call EncryptMessage - will I need to read the file in chunks, encrypting and transmitting them manually?
This seems a bit silly when TransmitFile is provided for the sole purpose of high performance file transfer, and secure sockets are pretty commonplace. I wonder what IIS does, considering I believe TransmitFile was implemented for IIS in the first place?
(I originally made "TransmitFile" and "EncryptMessage" hyperlinks but the spam protection only allowed one - sorry)