summaryrefslogtreecommitdiff
path: root/configure.ac
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 /configure.ac
parent5d4688679e9d3f9daa00ec53f0302f89d36028bf (diff)
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 'configure.ac')
-rw-r--r--configure.ac1
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a6414c6..b08054e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3098,6 +3098,7 @@ AM_CONDITIONAL([HAVE_IPV6], [test "x${have_ipv6}" = "xyes"])
3098### Checks for linker characteristics 3098### Checks for linker characteristics
3099 3099
3100### Checks for library functions 3100### Checks for library functions
3101AC_CHECK_FUNCS([accept4])
3101 3102
3102EFL_LIB_END([Ecore_Con]) 3103EFL_LIB_END([Ecore_Con])
3103#### End of Ecore_Con 3104#### End of Ecore_Con