Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore_con
Modified Files:
ecore_con.c
Log Message:
ipc header compression as part of the protocol. this relies on previosu
header states and does delta's. it seems to give me about 50-70% compression
for the headers - not bad. also solved aligned memory access problem waiting
to happen... :)
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_con/ecore_con.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- ecore_con.c 20 Apr 2004 11:40:44 -0000 1.24
+++ ecore_con.c 23 Apr 2004 07:24:36 -0000 1.25
@@ -507,7 +507,7 @@
"ecore_con_server_send");
return 0;
}
- if (svr->dead) return 1;
+ if (svr->dead) return 0;
if (!data) return 0;
if (size < 1) return 0;
ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_READ | ECORE_FD_WRITE);
@@ -529,7 +529,7 @@
memcpy(svr->write_buf, data, size);
}
_ecore_con_server_flush(svr);
- return 1;
+ return size;
}
/**
@@ -568,7 +568,7 @@
memcpy(cl->buf, data, size);
}
_ecore_con_client_flush(cl);
- return 1;
+ return size;
}
/**
-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs