Re: FW: FW: Libsoup patches // Performance metrics



The current trend in libsoup is to use the stream infrastructure instead
of the SoupMessage signals. One example of using the network raw data is
the SoupCache that caches it on disk.

Sounds promising; will research how it's done there, thanks.

You can take a look at the code for further details but I guess you just
need to define a new SoupContentProcessor with the proper
SoupProcessingState (SOUP_STATE_ENTITY_BODY is what you're looking for I
guess) and add it to the session. You can then use it to read raw data
from network by just adding a input stream to the stack of streams in
your implementation of wrap_input()

Thanks for the additional guidance; very helpful!

- Pieter


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]