summaryrefslogtreecommitdiff
path: root/src/lib/ecore_ipc/ecore_ipc_private.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-23 19:45:33 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-11-23 19:45:33 -0200
commit6f3220ffc6140594792c596ebb452149e19be00f (patch)
treee4856af31d89b89739852ae3d06bac7917d36ebf /src/lib/ecore_ipc/ecore_ipc_private.h
parentd0b6aa6596884fc4db5287bd8e3c2cee9db1f031 (diff)
ecore_ipc: convert ecore_ipc_server_add() to Efl_Net_Server.
Each client (Ecore_Ipc_Client) is very similar to the handle configured by ecore_ipc_server_connect() (the dialer), except we do not have events such as "connected" and "error", as well as we don't delete the socket as it's owned by the server, instead we close it. The UNIX socket is configured similarly to ecore_con, setting the same masks and mode for directories.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_ipc/ecore_ipc_private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/ecore_ipc/ecore_ipc_private.h b/src/lib/ecore_ipc/ecore_ipc_private.h
index 9f0def1f44..baf71fd788 100644
--- a/src/lib/ecore_ipc/ecore_ipc_private.h
+++ b/src/lib/ecore_ipc/ecore_ipc_private.h
@@ -66,6 +66,14 @@ struct _Ecore_Ipc_Msg_Head
66struct _Ecore_Ipc_Client 66struct _Ecore_Ipc_Client
67{ 67{
68 ECORE_MAGIC; 68 ECORE_MAGIC;
69
70 struct {
71 Eo *input;
72 Eo *socket;
73 Eo *recv_copier;
74 Eo *send_copier;
75 } socket;
76
69 Ecore_Con_Client *client; 77 Ecore_Con_Client *client;
70 Ecore_Ipc_Server *svr; 78 Ecore_Ipc_Server *svr;
71 void *data; 79 void *data;
@@ -93,6 +101,8 @@ struct _Ecore_Ipc_Server
93 Eo *send_copier; 101 Eo *send_copier;
94 } dialer; 102 } dialer;
95 103
104 Eo *server;
105
96 Ecore_Con_Server *legacy_server; 106 Ecore_Con_Server *legacy_server;
97 Eina_List *clients; 107 Eina_List *clients;
98 void *data; 108 void *data;