W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1996

[Q] Request* in HTEvent_registerTimeout ?

From: Sacha <sacha@clip.dia.fi.upm.es>
Date: Thu, 13 Jun 1996 11:28:21 +0200 (MET DST)
To: www-lib@w3.org
Message-Id: <199606130928.LAA29635@aguirre.dia.fi.upm.es>


I need to register a timeout function. What is the request* for in

PUBLIC BOOL HTEvent_registerTimeout (struct timeval *tp, HTRequest * request,
                                     HTEventTimeout *tcbf, BOOL always)


I can't think why you need to register a request. Surely the idea
is that when a timeout occurs, it calls tcbf with the request that
timed out? From what I can gather looking at the code:

        /* If timeout then see if we should call callback function */
        if (active_sockets == 0) {
            if (seltime.tcbf && (seltime.always || !HTNet_idle())) {
                if ((status = (*(seltime.tcbf))(seltime.request)) != HT_OK)
                    return status;
            } else

- it seems to call the callback function with the request you
registered. Does this mean that you can only register a timeout for
one request at a time? Or does seltime.request get reset in the
meantime if another request becomes the active one?

Any clues much appreciated,

Received on Thursday, 13 June 1996 05:29:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:47 UTC