W3C home > Mailing lists > Public > www-lib@w3.org > October to December 1995

RE: User Data in a HTRequest

From: Maciej Puzio <puzio@laser.mimuw.edu.pl>
Date: Thu, 28 Dec 1995 14:37:09 +-100
Message-Id: <01BAD531.FDDDDF40@pclab19.mimuw.edu.pl>
To: "'Matthias Kalle Dalheimer'" <mda@stardiv.de>
Cc: "'WWW Library Mailing List'" <www-lib@w3.org>
Hi!

> 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.

I've got the same problem.

> 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?

There is a void* field for this purpose in the HTRequest (its name is "context").
You can set it using HTRequest_setContext and read it using HTRequest_context.
See HTReq.h for details.

Hope this will help.

Happy New Year!

Maciej Puzio
puzio@laser.mimuw.edu.pl
Received on Thursday, 28 December 1995 08:44:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:25 GMT