W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2002

Re: Connection timeout

From: Michel Philip <mphilip@infovista.com>
Date: Tue, 22 Jan 2002 12:40:04 -0500 (EST)
Message-ID: <F520B214418AD4119F7000508BD90CC294B97A@hq01sr02.infovista.com>
To: "'www-lib@w3.org'" <www-lib@w3.org>

Hi,

Have you tried this:

  ...
  HTRequest request = HTRequest_new();
  HTRequest_setContext(request,  myReq);  
  myReq->timer = HTTimer_new(NULL, timer_callback, (void*)myReq, tm, true,
false);  
   ...

int timer_callback(HTTimer* timer, void * param, HTEventType type) 
{
    t_myReq *myReq = (t_myReq *)inst;
    HTRequest request = myReq->request;
    HTTimer_delete(timer);
    myReq->timer = NULL;

    // To kill the request use:
    /* 
    HTNet *net = HTRequest_net(request);
    HTNet_killPipe(net);
    */
}

/mph
Received on Tuesday, 22 January 2002 13:03:50 GMT

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