FACT++  1.0
void check_browser ( BROWSER tag)

Definition at line 644 of file webDid.c.

References delete_browser(), dtq_start_timer(), bitem::id, bitem::last_polled, time, and WebDID_Debug.

Referenced by create_browser().

645 {
646  BROWSER *browserp;
647  time_t tsecs;
648 
649  browserp = (BROWSER *)tag;
650 if(WebDID_Debug)
651 printf("\nCheck_browser %d\n",browserp->id);
652  tsecs = time((time_t *)0);
653  if((tsecs - browserp->last_polled) > 20)
654  {
655 if(WebDID_Debug)
656 printf("\nDeleting browser %d\n\n",browserp->id);
657  delete_browser(browserp);
658  }
659  else
660  dtq_start_timer(10, check_browser, browserp);
661 }
int delete_browser(BROWSER *browserp)
Definition: webDid.c:627
int WebDID_Debug
Definition: webServer.c:7
void dtq_start_timer(int time, void(*user_routine)(), dim_long tag)
Definition: dtq.c:790
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
Definition: smartfact.txt:92
void check_browser(BROWSER *tag)
Definition: webDid.c:644
time_t last_polled
Definition: webDid.c:67
int id
Definition: webDid.c:63
Definition: webDid.c:61

+ Here is the call graph for this function:

+ Here is the caller graph for this function: