HP-UX SNAplus2 NOF Programmer's Guide
Writing NOF Applications
Scheduling Asynchronous Events
Chapter 2102
Add the following lines to your code before the first call into any SNA
library:
#include <Xt.h>
int app_context;
...
XtAppInitialize(app_context...)
...
SNA_USE_XT_SCHED(app_context);
The SNA_USE_XT_SCHED call has no return values. It calls the
XtAppAddInput function to register the SNA work sources. When work
subsequently arrives on the SNA file descriptor, the Xt library
scheduling loop calls the SNA event handler, which then makes any
required API callbacks to the application.
NOTE SNA callbacks can also be made from within other calls into the SNA
library