forked from enlightenment/efl
ecore: trigger events on FD_READ, FD_CONNECT and FD_ACCEPT.
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
242e108e37
commit
257e399e53
|
@ -2254,9 +2254,9 @@ _ecore_main_win32_select(int nfds EINA_UNUSED,
|
|||
|
||||
WSAEnumNetworkEvents(sockets[result], objects[result], &network_event);
|
||||
|
||||
if ((network_event.lNetworkEvents & FD_READ) && readfds)
|
||||
if ((network_event.lNetworkEvents & (FD_READ | FD_CONNECT | FD_ACCEPT)) && readfds)
|
||||
FD_SET(sockets[result], readfds);
|
||||
if ((network_event.lNetworkEvents & FD_WRITE) && writefds)
|
||||
if ((network_event.lNetworkEvents & (FD_WRITE | FD_CLOSE)) && writefds)
|
||||
FD_SET(sockets[result], writefds);
|
||||
if ((network_event.lNetworkEvents & FD_OOB) && exceptfds)
|
||||
FD_SET(sockets[result], exceptfds);
|
||||
|
|
Loading…
Reference in New Issue