efl/src/examples/ecore
Gustavo Sverzut Barbieri e7df1a7483 efl.net: socket, server and dialer for TCP.
Efl.Net.Server defines how to accept new connections, doing the
bind(), listen() and accept() for protocols such as TCP.

Efl.Net.Dialer defines to to reach a server.

Both are based on Efl.Net.Socket as communication interface that is
based on Efl.Io.Reader, Efl.Io.Writer and Efl.Io.Closer, thus being
usable with code such as Efl.Io.Copier.

The Server will emit an event "client,add" with the established
Socket, which is a child and can be closed by both the server or the
user.

The Dialer extends the Socket and allows for creating one given an
address, that will be resolved and connected.

TCP is the initial implementation so we an validate the
interfaces. UDP, Unix-Local and SSL will come later as derivate
classes.

The examples are documented and should cover the basic principles:

 - efl_io_copier_example can accept "tcp://IP:PORT" and will work as a
   "netcat", can send data from socket, file or stdin to a socket,
   file, stdout or stderr.

 - efl_net_server_example listens for connections and can either reply
   "Hello World!" and take some data or work as an echo-server,
   looping back all received data to the user.

More complex interactions that require a "chat" between client and
server will be covered with new classes later, such as a queue that
empties itself once data is read.
2016-08-22 18:25:14 -03:00
..
.gitignore efl.net: socket, server and dialer for TCP. 2016-08-22 18:25:14 -03:00
Makefile.am efl.net: socket, server and dialer for TCP. 2016-08-22 18:25:14 -03: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 Eo: Finish the renaming of Eo to the EFL. 2016-08-15 15:07:42 +01:00
ecore_audio_to_ogg.c Eo: Finish the renaming of Eo to the EFL. 2016-08-15 15:07:42 +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_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
ecore_con_eet_descriptor_example.c
ecore_con_eet_descriptor_example.h
ecore_con_eet_server_example.c
ecore_con_lookup_example.c
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_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 Eo: Finish the renaming of Eo to the EFL. 2016-08-15 15:07:42 +01:00
ecore_imf_example.c
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 Eo: Finish the renaming of Eo to the EFL. 2016-08-15 15:07:42 +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: socket, server and dialer for TCP. 2016-08-22 18:25:14 -03:00
efl_net_server_example.c efl.net: socket, server and dialer for TCP. 2016-08-22 18:25:14 -03:00
red.png