
Chapter 6. z/TPF application as Web Service provider 103
45 ev0bk event;
46 memcpy(event.evnbkn, "CHAL", sizeof "CHAL");
47 memcpy(event.evnbkn+sizeof "CHAL", &lniata, sizeof lniata);
48 postc(&event, EVENT_CB_DA, 0);
49 }
50 exit(0);
51 }
In outputCacher():
Lines 1-3 show how, at the start of the function, we retrieve the terminal address from the
output of the ZDTIM command, which is formatted according the am0sg data structure.
Lines 4-5 show the definition of the magic number 5 which is used for programming
convenience.
Lines 6-7 show how we define an ostringstream object and copy the contents of the
am0sg block that contains the output of the ...