efl_net_*: improve WIN32.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 22 Oct 2016 23:49:01 +0000 (21:49 -0200)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Sat, 22 Oct 2016 23:49:01 +0000 (21:49 -0200)
commitcddbce89007c6cd43e84389fc88e5b56a6f4618c
tree4c9b14c91d479de2dd1a12859d321f5e91a17bbb
parenta06c9f96aaa5cba85c49be32e4be89a9efa84795
efl_net_*: improve WIN32.

Thanks to vtorri for poiting out about close() is not the correct
socket function, we should use closesocket() instead.

Also defined SOCKET to int on Linux so we can use the same 'type' and
avoid lots of ifdef in our code. On Windows it's unsigned, thus would
cause some warnings about incorrect signed comparison.
12 files changed:
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_dialer_tcp.c
src/lib/ecore_con/efl_net_dialer_udp.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