summaryrefslogtreecommitdiff
path: root/src/examples/ecore/Makefile.am
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-25 17:18:34 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-25 17:27:32 -0200
commit167ff29ea004f6d2d22e5f94a3b0b64fb19da44b (patch)
tree945137250f08304d48434262a92874ed57c0af05 /src/examples/ecore/Makefile.am
parent46341b329d72736c1f1c47478f760ab8db76bbc8 (diff)
efl_net_{socket,dialer,server}_simple: easy to use, buffered network sockets.
The low level I/O primitives are powerful but adds some complexity to use, for bi-directional streaming communication one ends creating two Efl.Io.Queue and two Efl.Io.Copier to pipe data to socket when it can operate. Then encapsulate the socket using the new Efl.Io.Buffered_Stream, this will allow the socket, be a dialer or a server client, to be operated as a single handle that internally carries about the buffering for you. As one can see in the examples, compared to their "manual" alternatives they are very easy to use, ressembling Ecore_Con_Server/Ecore_Con_Client, but also offers line-based delimiters and the possibility to let the socket to handle queueing for you in case you received partial messages (just do not read/clear/discard the received data).
Diffstat (limited to 'src/examples/ecore/Makefile.am')
-rw-r--r--src/examples/ecore/Makefile.am10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/examples/ecore/Makefile.am b/src/examples/ecore/Makefile.am
index db23d30c17..88f2384294 100644
--- a/src/examples/ecore/Makefile.am
+++ b/src/examples/ecore/Makefile.am
@@ -86,10 +86,12 @@ efl_io_copier_simple_example \
86efl_io_queue_example \ 86efl_io_queue_example \
87efl_io_buffered_stream_example \ 87efl_io_buffered_stream_example \
88efl_net_server_example \ 88efl_net_server_example \
89efl_net_server_simple_example \
89efl_net_dialer_http_example \ 90efl_net_dialer_http_example \
90efl_net_dialer_websocket_example \ 91efl_net_dialer_websocket_example \
91efl_net_dialer_websocket_autobahntestee \ 92efl_net_dialer_websocket_autobahntestee \
92efl_net_dialer_udp_example \ 93efl_net_dialer_udp_example \
94efl_net_dialer_simple_example \
93efl_net_socket_ssl_dialer_example \ 95efl_net_socket_ssl_dialer_example \
94efl_net_socket_ssl_server_example \ 96efl_net_socket_ssl_server_example \
95efl_net_session_example \ 97efl_net_session_example \
@@ -324,6 +326,9 @@ efl_io_buffered_stream_example_LDADD = $(ECORE_CON_COMMON_LDADD)
324efl_net_server_example_SOURCES = efl_net_server_example.c 326efl_net_server_example_SOURCES = efl_net_server_example.c
325efl_net_server_example_LDADD = $(ECORE_CON_COMMON_LDADD) 327efl_net_server_example_LDADD = $(ECORE_CON_COMMON_LDADD)
326 328
329efl_net_server_simple_example_SOURCES = efl_net_server_simple_example.c
330efl_net_server_simple_example_LDADD = $(ECORE_CON_COMMON_LDADD)
331
327efl_net_dialer_http_example_SOURCES = efl_net_dialer_http_example.c 332efl_net_dialer_http_example_SOURCES = efl_net_dialer_http_example.c
328efl_net_dialer_http_example_LDADD = $(ECORE_CON_COMMON_LDADD) 333efl_net_dialer_http_example_LDADD = $(ECORE_CON_COMMON_LDADD)
329 334
@@ -336,6 +341,9 @@ efl_net_dialer_websocket_autobahntestee_LDADD = $(ECORE_CON_COMMON_LDADD)
336efl_net_dialer_udp_example_SOURCES = efl_net_dialer_udp_example.c 341efl_net_dialer_udp_example_SOURCES = efl_net_dialer_udp_example.c
337efl_net_dialer_udp_example_LDADD = $(ECORE_CON_COMMON_LDADD) 342efl_net_dialer_udp_example_LDADD = $(ECORE_CON_COMMON_LDADD)
338 343
344efl_net_dialer_simple_example_SOURCES = efl_net_dialer_simple_example.c
345efl_net_dialer_simple_example_LDADD = $(ECORE_CON_COMMON_LDADD)
346
339if ! HAVE_WINDOWS 347if ! HAVE_WINDOWS
340EXTRA_PROGRAMS += efl_net_dialer_unix_example 348EXTRA_PROGRAMS += efl_net_dialer_unix_example
341efl_net_dialer_unix_example_SOURCES = efl_net_dialer_unix_example.c 349efl_net_dialer_unix_example_SOURCES = efl_net_dialer_unix_example.c
@@ -413,10 +421,12 @@ efl_io_copier_simple_example.c \
413efl_io_queue_example.c \ 421efl_io_queue_example.c \
414efl_io_buffered_stream_example.c \ 422efl_io_buffered_stream_example.c \
415efl_net_server_example.c \ 423efl_net_server_example.c \
424efl_net_server_simple_example.c \
416efl_net_dialer_http_example.c \ 425efl_net_dialer_http_example.c \
417efl_net_dialer_websocket_example.c \ 426efl_net_dialer_websocket_example.c \
418efl_net_dialer_websocket_autobahntestee.c \ 427efl_net_dialer_websocket_autobahntestee.c \
419efl_net_dialer_udp_example.c \ 428efl_net_dialer_udp_example.c \
429efl_net_dialer_simple_example.c \
420efl_net_socket_ssl_dialer_example.c \ 430efl_net_socket_ssl_dialer_example.c \
421efl_net_socket_ssl_server_example.c \ 431efl_net_socket_ssl_server_example.c \
422efl_net_session_example.c \ 432efl_net_session_example.c \