API Guide
601355 Rev A API Functions 2-365
Functions
32 printf(“*** Notify Parameters ***\n”
);
33 printf(“Program Number ==> “ );
34 prognum = (VST_PROGRAM_NUMBER)
atol(gets(input));
35
36 printf(“Version Number ==> “ );
37 versnum = (VST_VERSION_NUMBER)
atol(gets(input));
38
39 printf(“Procedure Number ==> “ );
40 procnum = (VST_PROCEDURE_NUMBER)
atol(gets(input));
41
42 printf(“Number of Notifies to listen
==> “ );
43 count = atoi(gets(input));
44
45 printf(“Timeout Value ==> “ );
46 t = atoi(gets(input));
47
48 printf(“Number of Timeouts to process
==> “ );
49 timeout = atoi(gets(input));
50
51 printf(“\nlistening\n” );
52
53 /* create the notify handle */
54 if ( (h = VS_Notify_Create()) !=
(VST_NOTIFY_HANDLE) NULL )
55 {
56 /* initialize the notify handle */
57 VS_Notify_SetFields ( h,
58 VSID_PROTOCOL, VSE_PROT_TCP,
59 VSID_PROGRAM_NUMBER,
prognum,
60 VSID_VERSION_NUMBER,
versnum,
61 VSID_PROCEDURE_NUMBER,
procnum,
62 VSID_CLIENT_DISPATCH,
vst_notify_dispatch,