aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile_Ecore_Con.am
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-08-18 01:53:16 -0300
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-08-22 18:25:14 -0300
commite7df1a74830082904695f48b29ff41dff30f664a (patch)
tree0ca7be29edc40a6ff8b6ffb518e5a649c60a9f7c /src/Makefile_Ecore_Con.am
parentefl.io: introduce basic interfaces and classes. (diff)
downloadefl-e7df1a74830082904695f48b29ff41dff30f664a.tar.gz
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.
Diffstat (limited to 'src/Makefile_Ecore_Con.am')
-rw-r--r--src/Makefile_Ecore_Con.am18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/Makefile_Ecore_Con.am b/src/Makefile_Ecore_Con.am
index a478dc2298..ec98fd31dd 100644
--- a/src/Makefile_Ecore_Con.am
+++ b/src/Makefile_Ecore_Con.am
@@ -6,6 +6,14 @@ ecore_con_eolian_files = \
lib/ecore_con/efl_network_client.eo \
lib/ecore_con/efl_network_server.eo \
lib/ecore_con/efl_network_connector.eo \
+ lib/ecore_con/efl_net_socket.eo \
+ lib/ecore_con/efl_net_socket_fd.eo \
+ lib/ecore_con/efl_net_socket_tcp.eo \
+ lib/ecore_con/efl_net_dialer.eo \
+ lib/ecore_con/efl_net_dialer_tcp.eo \
+ lib/ecore_con/efl_net_server.eo \
+ lib/ecore_con/efl_net_server_fd.eo \
+ lib/ecore_con/efl_net_server_tcp.eo \
lib/ecore_con/ecore_con_eet_base.eo \
lib/ecore_con/ecore_con_eet_server_obj.eo \
lib/ecore_con/ecore_con_eet_client_obj.eo \
@@ -52,7 +60,15 @@ lib/ecore_con/ecore_con_url_curl.h \
static_libs/http-parser/http_parser.c \
static_libs/http-parser/http_parser.h \
lib/ecore_con/ecore_con_private.h \
-lib/ecore_con/ecore_con_info.c
+lib/ecore_con/ecore_con_info.c \
+lib/ecore_con/efl_net_socket.c \
+lib/ecore_con/efl_net_socket_fd.c \
+lib/ecore_con/efl_net_socket_tcp.c \
+lib/ecore_con/efl_net_dialer.c \
+lib/ecore_con/efl_net_dialer_tcp.c \
+lib/ecore_con/efl_net_server.c \
+lib/ecore_con/efl_net_server_fd.c \
+lib/ecore_con/efl_net_server_tcp.c
EXTRA_DIST2 += lib/ecore_con/ecore_con_legacy.c