Josh Rosenberg added the comment:
Copying my comment from the previous issue:
For TransmitFile support, the Windows function to turn an integer file
descriptor into a WinAPI file HANDLE should be _get_osfhandle:
http://msdn.microsoft.com/en-us/library/ks2530z6.aspx
This was mentioned on the
New submission from Giampaolo Rodola':
This is a follow up of issue 17552 which adds a new socket.sendfile() method
taking advantage of high-performance os.sendfile() on UNIX.
The same thing could be done for Windows by using TransmitFile: