[Prev][Next][Index][Thread]
Re: User Data in a HTRequest
-
To: Matthias Kalle Dalheimer <mda@stardiv.de>
-
Subject: Re: User Data in a HTRequest
-
From: Henrik Frystyk Nielsen <frystyk@w3.org>
-
Date: Mon, 08 Jan 1996 21:11:23 -0500
-
Cc: www-lib@w3.org
-
From frystyk@w3.org Mon Jan 8 21: 11:38 1996
-
Message-Id: <9601090211.AA05753@www20>
-
Reply-To: Henrik Frystyk Nielsen <frystyk@w3.org>
-
X-Mailer: exmh version 1.6.2 7/18/95
> I do not know if this is right place to propose extensions to the
> www-lib, so please let me know if there is another place to do this.
This is a good place to do it - especially if the extensions are in form of a
patch ;-)
> I would like to be able to associate additional data with a request
> in order to access this data in callbacks. A simple void* in the
> _HTRequest struct would already do the trick.
>
> Or is there already a way to accomplish this?
As Matthias Kalle Dalheimer[SMTP:mda@stardiv.de] writes, the context pointer
is the way to do this. You can see an example of how this is used in the
Command Line tool and also in the Line Mode browser. In the latter you will
find two functions called Context_new() and Context_delete() which does
exactly that.
--
Henrik Frystyk Nielsen, <frystyk@w3.org>
World-Wide Web Consortium, MIT/LCS NE43-356
545 Technology Square, Cambridge MA 02139, USA