Re: FW: FW: Libsoup patches // Performance metrics
- From: Pieter Ennes <pieter watchmouse com>
- To: libsoup-list gnome org
- Subject: Re: FW: FW: Libsoup patches // Performance metrics
- Date: Tue, 9 Apr 2013 15:34:26 +0100
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]