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:
Nicolas Aguirre 2015-01-30 14:25:04 +01:00 committed by Cedric BAIL
parent 242e108e37
commit 257e399e53
1 changed files with 2 additions and 2 deletions

View File

@ -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);