forked from enlightenment/efl
more useless ecore-con functions: ecore_con_server_fd_get and ecore_con_client_fd_get
SVN revision: 63344
This commit is contained in:
parent
c032eb32ee
commit
e982875277
|
@ -287,3 +287,7 @@
|
||||||
* Add ecore_thread_main_loop_begin and ecore_thread_main_loop_end.
|
* Add ecore_thread_main_loop_begin and ecore_thread_main_loop_end.
|
||||||
Usefull to protect EFL call from another thread.
|
Usefull to protect EFL call from another thread.
|
||||||
|
|
||||||
|
2011-09-12 Mike Blumenkrantz
|
||||||
|
|
||||||
|
* Add ecore_con_server_fd_get, ecore_con_client_fd_get for manipulating
|
||||||
|
server file descriptors.
|
||||||
|
|
|
@ -957,6 +957,30 @@ EAPI void ecore_con_server_timeout_set(Ecore_Con_Server *svr, doubl
|
||||||
*/
|
*/
|
||||||
EAPI double ecore_con_server_timeout_get(Ecore_Con_Server *svr);
|
EAPI double ecore_con_server_timeout_get(Ecore_Con_Server *svr);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the fd that the server is connected to
|
||||||
|
*
|
||||||
|
* @param svr The server object
|
||||||
|
* @return The fd, or -1 on failure
|
||||||
|
*
|
||||||
|
* This function returns the fd which is used by the underlying server connection.
|
||||||
|
* It should not be tampered with unless you REALLY know what you are doing.
|
||||||
|
* @note This function is only valid for servers created with ecore_con_server_connect()
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
|
EAPI int ecore_con_server_fd_get(Ecore_Con_Server *svr);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the fd that the client is connected to
|
||||||
|
*
|
||||||
|
* @param cl The client object
|
||||||
|
* @return The fd, or -1 on failure
|
||||||
|
*
|
||||||
|
* This function returns the fd which is used by the underlying client connection.
|
||||||
|
* It should not be tampered with unless you REALLY know what you are doing.
|
||||||
|
* @since 1.1
|
||||||
|
*/
|
||||||
|
EAPI int ecore_con_client_fd_get(Ecore_Con_Client *cl);
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -888,6 +888,29 @@ ecore_con_client_flush(Ecore_Con_Client *cl)
|
||||||
_ecore_con_client_flush(cl);
|
_ecore_con_client_flush(cl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI int
|
||||||
|
ecore_con_server_fd_get(Ecore_Con_Server *svr)
|
||||||
|
{
|
||||||
|
if (!ECORE_MAGIC_CHECK(svr, ECORE_MAGIC_CON_SERVER))
|
||||||
|
{
|
||||||
|
ECORE_MAGIC_FAIL(svr, ECORE_MAGIC_CON_SERVER, __func__);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
if (svr->created) return -1;
|
||||||
|
return ecore_main_fd_handler_fd_get(svr->fd_handler);
|
||||||
|
}
|
||||||
|
|
||||||
|
EAPI int
|
||||||
|
ecore_con_client_fd_get(Ecore_Con_Client *cl)
|
||||||
|
{
|
||||||
|
if (!ECORE_MAGIC_CHECK(cl, ECORE_MAGIC_CON_CLIENT))
|
||||||
|
{
|
||||||
|
ECORE_MAGIC_FAIL(cl, ECORE_MAGIC_CON_CLIENT, __func__);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
return ecore_main_fd_handler_fd_get(cl->fd_handler);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue