static Eina_Bool _ecore_con_client_timer(Ecore_Con_Client *cl);
static void _ecore_con_cl_timer_update(Ecore_Con_Client *cl);
-static void _ecore_con_client_kill(Ecore_Con_Client *cl);
static Eina_Bool _ecore_con_server_timer(Ecore_Con_Server *svr);
static void _ecore_con_server_timer_update(Ecore_Con_Server *svr);
static const char * _ecore_con_pretty_ip(struct sockaddr *client_addr);
-static void
+void
_ecore_con_client_kill(Ecore_Con_Client *cl)
{
if (cl->delete_me)
free(msg);
}
#endif
- if (!cl->delete_me)
- ecore_con_event_client_del(cl);
+ _ecore_con_client_kill(cl);
return ECORE_CALLBACK_CANCEL;
}
free(msg);
}
#endif
- if (!cl->host_server->delete_me)
- ecore_con_event_server_del(cl->host_server);
+ _ecore_con_server_kill(cl->host_server);
return ECORE_CALLBACK_CANCEL;
ecore_main_win32_handler_del(wh);
free(msg);
}
#endif
- if (!svr->delete_me)
- ecore_con_event_server_del(svr);
+ _ecore_con_server_kill(svr);
return ECORE_CALLBACK_CANCEL;
ecore_main_win32_handler_del(wh);
free(msg);
}
#endif
- if (!svr->delete_me)
- ecore_con_event_server_del(svr);
+ _ecore_con_server_kill(svr);
return ECORE_CALLBACK_CANCEL;
}
ecore_con_event_server_error(svr, msg);
free(msg);
}
- if (!svr->delete_me)
- ecore_con_event_server_del(svr);
+ _ecore_con_server_kill(svr);
}
svr->write_buf_offset += written;
if (svr->write_buf_offset >= eina_binbuf_length_get(svr->buf))
{
svr->write_buf_offset = 0;
- eina_binbuf_free(svr->buf);
+ eina_binbuf_free(svr->buf);
svr->buf = NULL;
svr->want_write = 0;
}
ecore_con_event_client_error(cl, msg);
free(msg);
}
- if (!cl->delete_me)
- ecore_con_event_client_del(cl);
+ _ecore_con_client_kill(cl);
}
cl->buf_offset += written;
void ecore_con_event_client_del(Ecore_Con_Client *cl);
void ecore_con_event_client_error(Ecore_Con_Client *cl, const char *error);
void _ecore_con_server_kill(Ecore_Con_Server *svr);
+void _ecore_con_client_kill(Ecore_Con_Client *cl);
/* from ecore_local_win32.c */
#ifdef _WIN32
Eina_Bool ecore_con_local_listen(Ecore_Con_Server *svr);