efl/src/examples/ecore
Gustavo Sverzut Barbieri 98fe627ca4 efl_net_session and efl_net_control for ConnMan
These are objects to allow control of networking devices
(efl_net_control) as well as an application to request for
connectivity (efl_net_session).

They are loosely based on ConnMan.org, which we already use in
Enlightenment Window Manager via DBus access with Eldbus. However they
do not map 1:1 as the goal was to expose a viable subset of controls
but in a simple and general way, thus nome strings were converted to
enums, some arrays of strings were converted to bitwise flags, some
names were made more general, such as "service" was turned into
"access point" so it doesn't generate confusion with other "network
services" (ie: http server), or "favorite" that was renamed to
"remembered". Some behavior are slightly different (yet able to be
implemented on top), such as "Service.MoveBefore" and "MoveAfter" were
converted to a numeric "priority", calculated from service's list
index, changing the priority will reoder the list and thus generate
the MoveBefore and MoveAfter DBus commands.

ConnMan was chosen not only because we already use it, but because its
DBus API is sane and simple, with the server doing almost all that we
need. This is visible in the efl_net_session, which is completely done
in the server and do not require any extra work on our side -- aside
from talking DBus and converting to Eo, which is a major work :-D

   NOTE: ConnMan doesn't use FreeDesktop.Org DBus interfaces such as
         Properties and ObjectManager, thus we cannot use
         eldbus_model_object.

There are two examples added:

 - efl_net_session_example: monitors the connection available for an
   application and try to connect. You need a connman compiled with
   session_policy_local and a configuration file explained in
   https://github.com/aldebaran/connman/blob/master/doc/session-policy-format.txt
   to get a connection if nothing is connected. Otherwise it will just
   monitor the connectivity state.

 - efl_net_control_example: monitors, plays the agent and configure
   the network details. It can enable/disable technologies, connect to
   access points (services) and configure them. It's quite extensive
   as allows testing all of ConnMan's DBus API except P2P (Peers).
2016-11-08 22:40:34 -02:00
..
.gitignore efl_net_session and efl_net_control for ConnMan 2016-11-08 22:40:34 -02:00
Makefile.am efl_net_session and efl_net_control for ConnMan 2016-11-08 22:40:34 -02:00
Makefile.examples
ecore_animator_example.c
ecore_audio_custom.c Eo: Finish the renaming of Eo to the EFL. 2016-08-15 15:07:42 +01:00
ecore_audio_playback.c Efl object: Rename Eo_Event -> Efl_Event. 2016-08-30 13:34:10 +01:00
ecore_audio_to_ogg.c Efl object: Rename Eo_Event -> Efl_Event. 2016-08-30 13:34:10 +01:00
ecore_buffer_consumer_example.c examples ecore_buffer: correct argument order for calloc() 2015-11-30 16:31:58 +01:00
ecore_buffer_example.c ecore-buffer: Add ecore_buffer library to EFL. 2015-06-22 10:31:42 -04:00
ecore_buffer_provider_example.c examples ecore_buffer: correct argument order for calloc() 2015-11-30 16:31:58 +01:00
ecore_client_bench.c
ecore_compose_get_example.c ecore_example: fix file name in the example's comment. 2015-09-23 12:43:23 -07:00
ecore_con_client_example.c
ecore_con_client_simple_example.c
ecore_con_eet_client_example.c examples/ecore_con: Mark some unused parameters as such 2015-07-23 17:18:04 +02:00
ecore_con_eet_descriptor_example.c
ecore_con_eet_descriptor_example.h
ecore_con_eet_server_example.c examples/ecore_con: Mark some unused parameters as such 2015-07-23 17:18:04 +02:00
ecore_con_lookup_example.c examples/ecore_con: Mark some unused parameters as such 2015-07-23 17:18:04 +02:00
ecore_con_server_example.c
ecore_con_server_http_example.c ecore_con: preventing possible NULL pointer dereference. 2015-09-23 12:42:22 -07:00
ecore_con_server_simple_example.c ecore_con: preventing possible NULL pointer dereference. 2015-10-09 10:00:32 +02:00
ecore_con_url_cookies_example.c
ecore_con_url_download_example.c efl: add binary mode to open() calls 2015-12-05 21:06:04 +01:00
ecore_con_url_ftp_example.c
ecore_con_url_headers_example.c
ecore_evas_basics_example.c
ecore_evas_buffer_example_01.c
ecore_evas_buffer_example_02.c
ecore_evas_callbacks.c
ecore_evas_ews_example.c
ecore_evas_extn_plug_example.c
ecore_evas_extn_socket_example.c
ecore_evas_object_example.c
ecore_evas_vnc_example.c Ecore Evas VNC: add client disconnected callback. 2016-11-07 14:44:40 -08:00
ecore_evas_wayland_multiseat_example.c examples/ecore: add example / test for wayland multiseat 2016-11-01 16:06:19 -02:00
ecore_evas_window_sizes_example.c
ecore_event_example_01.c
ecore_event_example_02.c
ecore_exe_example.c
ecore_exe_example_child.c
ecore_fd_handler_example.c
ecore_fd_handler_gnutls_example.c Example, Ecore: fix compilation on Windows 2015-12-15 15:05:06 +09:00
ecore_file_download_example.c
ecore_getopt_example.c
ecore_idler_example.c Rename efl_self to efl_added 2016-09-05 16:59:56 +01:00
ecore_imf_example.c ecore_imf_example: remove unnecessary code to set client window 2015-08-20 16:11:24 +09:00
ecore_input_joystick_example.c Ecore_Input: define data type for joysticks 2016-06-13 20:33:29 +09:00
ecore_job_example.c
ecore_pipe_gstreamer_example.c
ecore_pipe_simple_example.c
ecore_poller_example.c Rename efl_self to efl_added 2016-09-05 16:59:56 +01:00
ecore_server_bench.c
ecore_thread_example.c
ecore_time_functions_example.c
ecore_timer_example.c
efl_io_copier_example.c efl_net_{server,dialer}_ssl: TCP + SSL easy to use. 2016-11-01 01:31:56 -02:00
efl_io_copier_simple_example.c ecore: shutup unused arguments warning. 2016-09-09 16:22:55 -07:00
efl_io_queue_example.c Rename efl_self to efl_added 2016-09-05 16:59:56 +01:00
efl_net_control_example.c efl_net_session and efl_net_control for ConnMan 2016-11-08 22:40:34 -02:00
efl_net_dialer_http_example.c efl_* examples: improve usability of boolean options. 2016-10-22 11:55:45 -02:00
efl_net_dialer_udp_example.c efl_net_dialer_udp_example: add missing print of groups. 2016-10-26 12:24:48 -02:00
efl_net_dialer_unix_example.c addded efl_net_{socket,dialer,server}_unix 2016-10-26 19:01:03 -02:00
efl_net_dialer_websocket_autobahntestee.c Rename efl_self to efl_added 2016-09-05 16:59:56 +01:00
efl_net_dialer_websocket_example.c efl_* examples: improve usability of boolean options. 2016-10-22 11:55:45 -02:00
efl_net_server_example.c efl_net_server support systemd socket activation. 2016-11-01 16:37:04 -02:00
efl_net_session_example.c efl_net_session and efl_net_control for ConnMan 2016-11-08 22:40:34 -02:00
efl_net_socket_ssl_dialer_example.c efl_net_socket_ssl: initial SSL wrapper. 2016-10-31 19:39:33 -02:00
efl_net_socket_ssl_server_example.c efl_net_socket_ssl: initial SSL wrapper. 2016-10-31 19:39:33 -02:00
red.png