Re: MinGW port usable
From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:51
Hi, On Tue, 30 Jan 2007, Johannes Sixt wrote:
Daniel Barkalow wrote:quoted
On Mon, 29 Jan 2007, Johannes Sixt wrote:quoted
(*) The reason is that on Windows read() and write() cannot operate on descriptors created by socket(). A work-around is to implement a (threaded) proxy, but that's almost the same as if netcat were used as GIT_PROXY_COMMAND.Can you do #define read(fd, buffer, len) recv(fd, buffer, len, 0) #define write(fd, buffer, len) send(fd, buffer, len, 0) in the appropriate file?I doubt that recv and send can operate on regular file descriptors, as opened by _pipe(), open(), can they?
They can't. Thus, you'd break at least inetd mode. Of course, you really could start a thread which gets two pipe()d fds, and the proper socket, and just shuffles things back & forth. Not that hard. Ciao, Dscho