Re: [gnet] http api question
- From: "Hubert Sokolowski" <h sokolowski wsisiz edu pl>
- To: gnet gnetlibrary org
- Cc:
- Subject: Re: [gnet] http api question
- Date: Wed, 13 Apr 2005 10:26:13 +0200 (CEST)
> On Wednesday 13 April 2005 01:43, David Sowa wrote:
>
> Hi David,
>
>> I'm looking at the GConnHttp documentation and it the description of the
>> GConnHttpEvent it says this:
>>
>> GNET_CONN_HTTP_DATA_PARTIAL: data has been read. The buffer is
>> caller-owned
>> (ie. owned by GNet), but may be truncated to zero length using the
>> appropriate GString methods. You must not free the buffer
>>
>> Can this buffer really be manipulated as a GString? I don't see any way
>> to
>> get a GString pointer.
>
> No, this buffer can't be manipulated as a GString. The first version of
> GConnHttp used a GString as buffer, but that wouldn't have worked in
> GLib-1.2
> (because it can handle embedded 0s only since GLib-2.0), so it was changed
> to
> the way it is now. Looks like I forgot to update this part of the
> documentation.
>
I thought that gnet switches to glib-2.0 and will not support glib-1.2
anymore.
I am wrong?
regards
hs
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]