no ip for local conns

SVN revision: 23822
This commit is contained in:
Carsten Haitzler 2006-07-10 19:11:55 +00:00
parent f41aec9158
commit 9b885559b6
1 changed files with 11 additions and 8 deletions

View File

@ -968,14 +968,17 @@ _ecore_con_svr_handler(void *data, Ecore_Fd_Handler *fd_handler __UNUSED__)
cl, NULL, NULL); cl, NULL, NULL);
ECORE_MAGIC_SET(cl, ECORE_MAGIC_CON_CLIENT); ECORE_MAGIC_SET(cl, ECORE_MAGIC_CON_CLIENT);
ecore_list_append(svr->clients, cl); ecore_list_append(svr->clients, cl);
ip = incoming.sin_addr.s_addr; if (!svr->path)
snprintf(buf, sizeof(buf), {
"%i.%i.%i.%i", ip = incoming.sin_addr.s_addr;
(ip ) & 0xff, snprintf(buf, sizeof(buf),
(ip >> 8 ) & 0xff, "%i.%i.%i.%i",
(ip >> 16) & 0xff, (ip ) & 0xff,
(ip >> 24) & 0xff); (ip >> 8 ) & 0xff,
cl->ip = strdup(buf); (ip >> 16) & 0xff,
(ip >> 24) & 0xff);
cl->ip = strdup(buf);
}
if (!cl->delete_me) if (!cl->delete_me)
{ {
Ecore_Con_Event_Client_Add *e; Ecore_Con_Event_Client_Add *e;