efl_net: play better with WIN32.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 22 Oct 2016 15:15:16 +0000 (13:15 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 22 Oct 2016 15:15:16 +0000 (13:15 -0200)
commite6a78bd02aeaa1d66a01c08f0e8c40186b21d618
treeea555de0c5eeb3cc7f4a7c722f8b4c211f59907e
parentbcd60581ebd0c435a06ce194fe4fe72412d87101
efl_net: play better with WIN32.

Defined INVALID_SOCKET=-1 and SOCKET_ERROR=-1 on non-Windows platforms
so we can keep the same construct 'function() == error' and it should
work on POSIX and windows.

I cannot test these on Windows, but the situation should be improved
with this commit.
src/lib/ecore_con/ecore_con.c
src/lib/ecore_con/ecore_con_private.h
src/lib/ecore_con/efl_net_dialer_http.c
src/lib/ecore_con/efl_net_server_fd.c
src/lib/ecore_con/efl_net_server_tcp.c
src/lib/ecore_con/efl_net_server_udp.c
src/lib/ecore_con/efl_net_server_udp_client.c
src/lib/ecore_con/efl_net_socket_fd.c
src/lib/ecore_con/efl_net_socket_tcp.c
src/lib/ecore_con/efl_net_socket_udp.c