From: Andreas Ericsson Date: Tue, 30 Jan 2007 08:41:30 GMT Subject: Re: MinGW port usable Message-ID: <45BF04BA.3020606@op5.se> In-Reply-To: <45BF0098.8FF978CE@eudaptics.com> Johannes Sixt wrote: > Daniel Barkalow wrote: >> On Mon, 29 Jan 2007, Johannes Sixt wrote: >> >>> (*) 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? > Hence "in the appropriate file", I guess. -- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231