OpenTP1 Version 7 Programming Guide
You can use a function from an MHP or SPP to set time monitoring and to cancel the setting. This facility is called the facility for user timer monitoring. It enables you to monitor a desired time. To use the facility for user timer monitoring, you must specify usertime=yes in the -p option of the MCF communication configuration definition mcfttim.
To set user timer monitoring, call the function dc_mcf_timer_set() [CBLDCMCF('TIMERSET')]. To cancel a user timer monitoring, call the function dc_mcf_timer_cancel() [CBLDCMCF('TIMERCAN')]. Processing for setting and canceling user timer monitoring is run when the function is called regardless of transactions.
At a fixed time monitoring interval, the MCF checks whether timeout has occurred. Specify the time monitoring interval in the btim operand of the -t option of the MCF communication configuration definition mcfttim.
If timeout has occurred, OpenTP1 starts the MHP specified in the arguments of the function dc_mcf_timer_set(). Specifying user data in the arguments of the function dc_mcf_timer_set() causes OpenTP1 to pass the data as a message to the MHP started after timeout occurs.
The mcftlsutm command can be used to display the user timer monitoring status. For details about the mcftlsutm command, see the manual OpenTP1 Operation.
The facility for user timer monitoring can be used under any protocol.
The figure below gives an example of using the facility for user timer monitoring. This example shows how the time of responses from a remote system is monitored.
Figure 3-19 Example of using the facility for user timer monitoring
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.