[Xitami] Compression
Pieter Hintjens
ph at imatix.com
Tue Mar 28 12:04:42 CEST 2006
On 3/28/06, teguh at ukonline.co.uk <teguh at ukonline.co.uk> wrote:
>
> I wanna enhance Xitami with LZ77 (for text) and bit sampling (for gif n jpeg).
> This is very hard to understand the structure of xitami. Anyone can help me
> where can i modificate the code in order that my compression will work ?
I'll help you with any questions you have.
At what level do you want to make the compression work?
Typically, you can make almost all the changes in just two places.
First, there is the HTTP protocol driver, smthttp.c and smthttp.l (the
state machine). Second, there is the HTTP library module, smthttpl.c.
If you want to modify the state machine you need to understand Libero,
the tool we use. It's well documented on imatix.com.
If you want to modify the library, you need to understand how it
works, and the best way is to read the code, and try to see how the
various functions are called from the protocol driver. The library
code is *horrible*, I know this. My apologies.
-Pieter Hintjens
iMatix Corporation
More information about the Xitami
mailing list