#endif
#include <netdb.h>
+#include <Ecore_Data.h>
/**
* @file Ecore_Con.h
EAPI void *ecore_con_server_del(Ecore_Con_Server *svr);
EAPI void *ecore_con_server_data_get(Ecore_Con_Server *svr);
EAPI int ecore_con_server_connected_get(Ecore_Con_Server *svr);
+ EAPI Ecore_List *ecore_con_server_clients_get(Ecore_Con_Server *svr);
EAPI int ecore_con_server_send(Ecore_Con_Server *svr, void *data, int size);
EAPI void ecore_con_server_client_limit_set(Ecore_Con_Server *svr, int client_limit, char reject_excess_clients);
EAPI char *ecore_con_server_ip_get(Ecore_Con_Server *svr);
return 1;
}
+/**
+ * Retrieves the current list of clients.
+ * @param svr The given server.
+ * @return The list of clients on this server.
+ * @ingroup Ecore_Con_Server_Group
+ */
+EAPI Ecore_List*
+ecore_con_server_clients_get(Ecore_Con_Server *svr)
+{
+ if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_CON_SERVER))
+ {
+ ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_CON_SERVER,
+ "ecore_con_server_clients_get");
+ return NULL;
+ }
+ return svr->clients;
+}
+
/**
* Sends the given data to the given server.
* @param svr The given server.