pantherforum

Members Login
Username 
 
Password 
    Remember Me  
 

Topic: Timeout

Post Info
Newbie
Status: Offline
Posts: 1
Date:
Timeout
Permalink  
 

Hello everyone,

I'm interested has anyone been working with timeouts in Panther.

I've read documentation but it's little fuzzy...

I want to refresh screen every 10 seconds with data from database.



__________________
Newbie
Status: Offline
Posts: 3
Date:
Permalink  
 

Panther has a timeout hook function.

See http://www.prolifics.com/docs/panther/html/dev_html/hooks.htm

 



__________________
Newbie
Status: Offline
Posts: 1
Date:
Permalink  
 
If you are using Panther 5.10 or later, there is also support for timer functions. You can also get a patch for Panther 4.50; 4.60 and 5.00. Use the TIMER_FUNC code for sm_install. For example,

struct fnc_data timer_funcs[] =
{
{ TF_MINUTES, poll_database, 0, 0, 10, 0 }
}

int tcount = sizeof ( timer_funcs ) / sizeof (struct fnc_data ) ;

sm_install ( TIMER_FUNC, timer_funcs, &tcount ) ;

The function interface and return codes of timer functions is the same as that for timeout functions.



__________________
 
Page 1 of 1  sorted by
Quick Reply

Please log in to post quick replies.



Create your own FREE Forum
Report Abuse
Powered by ActiveBoard