On Samstag, 16. Januar 2010, Erik Faye-Lund wrote: > The problem with that is differentiating between pipes and sockets. > GetFileType() returns FILE_TYPE_PIPE for sockets (ugh). I did find > some code in gnulib that used WSAEnumNetworkEvents() to differentiate > between them, but I find this quite hacky. Wouldn't it be possible to call getsockopt(), and if it returns ENOTSOCK (WSAENOTSOCK), then it is a pipe? -- Hannes -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html