recv/send revert patch

Conrad Scott
Wed Aug 21 13:27:00 GMT 2002

"Christopher Faylor" <> wrote:
> Would it make sense to use recvfrom/sendto on systems that
> it by implementing a new wincap capability?

The main reason I chopped out the recv/send methods and used the
existing recvfrom/sendto methods instead was simply to eliminate
some code, i.e. if recvfrom with a couple of NULL arguments is a
drop-in replacement for recv then why have methods for both?
Other than that, there isn't any reason to use recvfrom rather
than recv AFAIK.

(What's particularly annoying is that it is only for one
particular situation where the replacement fails on NT4.0; but to
work around that would require having the code in the DLL anyhow,
so the saving is immediately lost.)

On that basis, I'd have thought it's just cleaner and easier to
drop what my initial patch was attempting and call the matching
winsock interface each time.


// Conrad

More information about the Cygwin-patches mailing list