Open h5rdly opened 7 years ago
Hello, yes it would be extremely nice to have. Years ago I tried to implement this integration by using pywin32 but I got stuck: https://mail.python.org/pipermail/python-win32/2011-January/011107.html This was long ago and I've never tried again since then. In order to move this forward we should still come up with a PoC in pure Python which uses pywin32 and sends a file at least in blocking mode.
Honestly, I'm not sure how to approach this, except perhaps that the select() module might come handy - http://stackoverflow.com/questions/12194701/asynchronous-sockets-with-select-python
That question was asked a while ago, perhaps asking in stackoverflow will yield better answers?
Hi,
First, this is a sweet utility, thanks for maintining it!
I read that Windows allegedly supports zero copy via a Winsock function called TransmitFile - https://msdn.microsoft.com/en-us/library/windows/desktop/ms740565(v=vs.85).aspx "TransmitFile is not functional on transports that perform their own buffering... Because TransmitFile achieves its performance gains by sending data directly from the file cache."
Would it be possible to make pysendfile work on windows as well? It would be super useful, and I suspect add it much popularity, as it would allow using it in a completely cross-platform manner. Personally I'm intrigued by pen-testing library utilizations, but that's just the tip of it, could probably be used by corporate-level datatbases and whatnot :)