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

Rolling your own event handler

From: Matthias Dalheimer <mda@stardiv.de>
Date: Thu, 14 Dec 95 10:18:18 MET
Message-Id: <9512140918.AA06603@starlab.stardiv.de>
To: www-lib@w3.org
Hello,

the Library Architecture Manual says that it is possible to deal with events
in three ways:
- Preemptive mode - have every system call block. This would be just fine
  for simple test programs (for example testing proxy access/cache strategies
  etc.)
- Active mode - the Library provides its own event loop which you have to call
  via HTEvent_Loop (sp?)
- Passive mode - the application provides the event loop. This is necessary for
  me because our applications already have en event loop which cannot (because
  of its multiplatform nature) be redirected.

Unfortunately, I have not found any code examples (the LineModeBrowser uses
the Library's event loop) or API calls (all the API calls in HTEvntRg.h seem
to be made for Active mode). The User's Guide contains a section on the
Event Manager, but it is apparently 'under construction' and only contains
of a few lines.

Does anybody know of any examples, documentation, code snippets etc. on how
to use preemptive and/or passive mode?

Thank you very much in advance,

Kalle

-- 
Matthias Kalle Dalheimer
Software Engineer
StarDivision GmbH
StarView Unix Group
Sachsenfeld 4
D-20097 Hamburg
Federal Republic of Germany
Tel: +49-40-23646959
Fax: +49-40-23646550
email: mda@stardiv.de
Received on Thursday, 14 December 1995 04:18:51 GMT

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