Thread (47 messages) flat view 47 messages, 3 authors, 2016-06-15

Re: [PATCH v2 13/14] daemon: use select() instead of poll()

From: Erik Faye-Lund <hidden>
Date: 2016-06-15 22:48:02

On Sat, Jan 16, 2010 at 9:08 AM, Johannes Sixt [off-list ref] wrote:
On Samstag, 16. Januar 2010, Erik Faye-Lund wrote:
quoted
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
I read reports that this didn't work in Wine. Not that I care that
much about Wine.

-- 
Erik "kusma" Faye-Lund
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help