From: Andrew Lentvorski <[EMAIL PROTECTED]>
Gabriel Sechan wrote:
*gethostbyname_r requires different parameters for all the Unix types
*MSG_PEEK flag on Windows is completely broken. If you need to peek, you
need to write your own buffer layer. Of course, you frequently want to do
that anyway.
*select on windows only allows tcp or udp, not both
*asynchronous IO interface is different, but easily abstractable to a
common interface
And the error code checking is completely different
Yes, the error codes are different, but the error conditions are the same.
You take one .h file called SOcketCompat.h, and do a #ifdef to define the
windows variants to their real names. It is a bit annoying, but there's an
easy workaround.
And select() has to be emulated with pumps
No it doesn't. Select has been available on windows since at least Windows
95. THe only caveat is that is does TCP or UDP sockets, it does not work on
both (or didn't as of last time I checked, pre-XP).
Its really not that bad. Nowhere near as bad as GUI programming.
That's sort of like saying that French and Chinese cooking are similar
because they are completely different from catering.
A bit of a non-sequitur.
No, I think it makes plenty of sense. Socket portability is much easier
than GUI portability.
Gabe
_________________________________________________________________
Share your latest news with your friends with the Windows Live Spaces
friends module.
http://clk.atdmt.com/MSN/go/msnnkwsp0070000001msn/direct/01/?href=http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mk
--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list