summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con/ecore_con_suite.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-12 02:23:29 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-12 02:30:33 -0200
commit633ec445b8f167339fa451350319f47a4b01900b (patch)
treea7a6bd9aff14ec02fe3fabfe1f3d5648289103f6 /src/tests/ecore_con/ecore_con_suite.c
parent96eccc27535e2d2a0de3dae46dbdedb5450e1174 (diff)
downloadefl-633ec445b8f167339fa451350319f47a4b01900b.tar.gz
efl_net: add Efl.Net.Ip_Address
This is a string parser, serializer and asynchronous resolver. It's purpose is to convert to and from the strings we use in our dialers and servers, such as "127.0.0.1:1234" or "[::1]:1234", properties allow to check the family, port, address bytes (slice) and even get a struct sockaddr pointer to use with bind()/connect() in outside code. It will also offer some utilities present in netinet/in.h in an easy to use way, after all IN6_IS_ADDR_LOOPBACK() works one way, while there is no IN_LOOPBACK and comparing with INADDR_LOOPBACK will lead to errors since it's in network order. Last but not least, it will do asynchronous resolve of host and port names using an internal thread and getaddrinfo(). The results are delivered using a Future with an array of objects.
Diffstat (limited to 'src/tests/ecore_con/ecore_con_suite.c')
-rw-r--r--src/tests/ecore_con/ecore_con_suite.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tests/ecore_con/ecore_con_suite.c b/src/tests/ecore_con/ecore_con_suite.c
index a3ef616064..21585ae93e 100644
--- a/src/tests/ecore_con/ecore_con_suite.c
+++ b/src/tests/ecore_con/ecore_con_suite.c
@@ -9,6 +9,7 @@ static const Efl_Test_Case etc[] = {
{ "Ecore_Con", ecore_con_test_ecore_con },
{ "Ecore_Con_Url", ecore_con_test_ecore_con_url },
{ "Ecore_Con_Eet", ecore_con_test_ecore_con_eet },
+ { "Efl_Net_Ip_Address", ecore_con_test_efl_net_ip_address },
{ NULL, NULL }
};