e7df1a7483
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. |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile.am | ||
Makefile.examples | ||
ecore_animator_example.c | ||
ecore_audio_custom.c | ||
ecore_audio_playback.c | ||
ecore_audio_to_ogg.c | ||
ecore_buffer_consumer_example.c | ||
ecore_buffer_example.c | ||
ecore_buffer_provider_example.c | ||
ecore_client_bench.c | ||
ecore_compose_get_example.c | ||
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_server_simple_example.c | ||
ecore_con_url_cookies_example.c | ||
ecore_con_url_download_example.c | ||
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 | ||
ecore_file_download_example.c | ||
ecore_getopt_example.c | ||
ecore_idler_example.c | ||
ecore_imf_example.c | ||
ecore_input_joystick_example.c | ||
ecore_job_example.c | ||
ecore_pipe_gstreamer_example.c | ||
ecore_pipe_simple_example.c | ||
ecore_poller_example.c | ||
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_example.c | ||
red.png |