Determines if the designated host Presentation Space (PS) or Operator Information Area (OIA) has been updated. The asynchronous option is also provided using the returned Queue ID mechanism.
This function requires no prerequisite calls to other functions.
hllc (func, apistring, len, ret) int *func; char *apistring; int *len; int *ret;
Supply the following parameters to invoke the START HOST NOTIFICATION function:
apistring | The following codes are valid:
| ||||||||
ret | The following codes are valid:
|
The START HOST NOTIFICATION function begins the process by which your HLLAPI application program determines if the designated host PS or OIA has been updated. The application does not have to connect to the session to issue this call. However, the issuing application has the responsibility to issue the STOP HOST NOTIFICATION (25) function for the same session. Otherwise, other applications will not be notified from this session.
START HOST NOTIFICATION may be issued against multiple sessions simultaneously. If the application chooses the A (asynchronous) option, it may choose to wait on the returned Queue ID to determine when a host event has occurred by issuing a poll command. When the poll returns, the QUERY HOST UPDATE (24) function should then be called to determine the type of update that has occurred.
Attention: Use Queue ID only for waiting on events. Use the PAUSE (18) function to query contents and receive queue events.
After using this function, your application program can use the QUERY HOST UPDATE (24) function to determine when a host event has occurred. The QUERY HOST UPDATE(24) function can be used to determine whether PS, OIA, or both, have changed.
Subsequent START HOST NOTIFICATION functions have no effect as long as the options remain the same as the initial START HOST NOTIFICATION functions.
To receive notification of multiple events, the application must use the QUERY HOST UPDATE (24) function after each event notification.
PAUSE (18) function , QUERY HOST UPDATE (24) function and STOP HOST NOTIFICATION function .