efl_net_dialer_tcp: make asynchronous resolve and connect.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 9 Sep 2016 23:09:51 +0000 (20:09 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Fri, 9 Sep 2016 23:14:01 +0000 (20:14 -0300)
commitcb8695e9d65500b76ac4d3aa124adf4bbe749298
tree9f07bba5074ed8e7466c247560bfef8321531da3
parent45ce4c8008caa139184bf935204ce213b28f3a4d
efl_net_dialer_tcp: make asynchronous resolve and connect.

both resolve (getaddrinfo()) and connect() are now done in
Ecore_Thread, avoid to block the main loop.

My plan is to always use the threaded connect() using a blocking
socket, only set it to non-blocking after the socket is returned to
the main thread and before it's accessible to the user. It will make
the connect behavior more uniform.

Some errors were moved from HTTP to Dialer as they are more generic.
src/lib/ecore_con/Ecore_Con_Eo.h
src/lib/ecore_con/ecore_con.c
src/lib/ecore_con/ecore_con_private.h
src/lib/ecore_con/ecore_con_url_curl.c
src/lib/ecore_con/efl_net_dialer.eo
src/lib/ecore_con/efl_net_dialer_tcp.c
src/lib/ecore_con/efl_net_dialer_websocket.c
src/lib/ecore_con/efl_net_http_types.eot