diff options
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2016-10-26 18:57:37 -0200 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2016-10-26 19:01:03 -0200 |
commit | 651ff136163bf6fb4986f9dfaff09ca3f212178e (patch) | |
tree | 2e2781c5a21babafad44a820cc9bf142dc3afe60 /src/lib/ecore_con/ecore_con_private.h | |
parent | 84ee276b127443e20a0db70666feefcaf1823559 (diff) | |
download | efl-651ff136163bf6fb4986f9dfaff09ca3f212178e.tar.gz |
addded efl_net_{socket,dialer,server}_unix
This introduces AF_UNIX server and dialer, these are not available on
Windows as in that platform we'll create a custom class for native
'local' communication.
In the future we can add a wrapper class Efl.Net.Local that will use
the class for each platform, but won't expose its details.
For instance, if we ever expose 'credentials' (which I didn't because
they are not portable), then it doesn't make sense to try to match
that on Windows. The 'Efl.Net.Local' would just stick to the basics:
Reader, Writer and Closer APIs.
Diffstat (limited to 'src/lib/ecore_con/ecore_con_private.h')
-rw-r--r-- | src/lib/ecore_con/ecore_con_private.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_con/ecore_con_private.h b/src/lib/ecore_con/ecore_con_private.h index 894356fd20..ef78f96e6c 100644 --- a/src/lib/ecore_con/ecore_con_private.h +++ b/src/lib/ecore_con/ecore_con_private.h @@ -402,7 +402,8 @@ void _efl_net_server_udp_client_feed(Eo *client, Eina_Rw_Slice slice); void _efl_net_socket_udp_init(Eo *o, const struct sockaddr *addr, socklen_t addrlen, const char *str); -Eina_Bool efl_net_ip_port_fmt(char *buf, int buflen, const struct sockaddr *addr); +Eina_Bool efl_net_unix_fmt(char *buf, size_t buflen, SOCKET fd, const struct sockaddr_un *addr, socklen_t addrlen); +Eina_Bool efl_net_ip_port_fmt(char *buf, size_t buflen, const struct sockaddr *addr); /** * @brief splits an address in the format "host:port" in two |