OSI/FTAM Programming Reference Manual

NonStop FTAM Programming Examples
HP NonStop OSI/FTAM Programming Reference Manual528611-001
G-228
Translation Application Example
242 /**********************************************************************/
243 void HandleSysMsg (short sLen)
244 {
245 zsys_ddl_smsg_open_def *OpenMsg;
246 zsys_ddl_receiveinformation_def ReceiveInfo;
247 short sIndex = -1,
248 sError = 0;
249 switch (saSpiBuffer [0])
250 {
251 /*No close message if processor failed.*/
252 case ZSYS_VAL_SMSG_CPUDOWN:
252 case ZSYS_VAL_SMSG_REMOTECPUDOWN:
253 case ZSYS_VAL_SMSG_NODEDOWN:
254 if (sSpiFnum < 0)
255 break;
256 while (sError == 0)
257 {
258 sError = OPENER_LOST_ ((char *) saSpiBuffer, sLen,
259 (short *) &ResponderPhandle,
260 &sIndex, 1,
261 (short) sizeof (ResponderPhandle) * 2);
262 switch (sError)
263 {
264 case 2:
265 printf ("Parameter Error on OPENER_LOST_\n");
266 sError = 0;
267 break;
268 case 3:
269 printf ("Bounds Error on OPENER_LOST_\n");
270 sError = 0;
271 break;
272 case 6:
273 sOpenerCount = 0;
274 /* Give responder time to do backup takeover... */
275 DELAY (500);
276 /* The first call to OpenResponderFile(), causes an */
277 /* by to send a new translate request to the responder. */
278 /* If the attempt fails, the responder closes. */
279 if (OpenResponderFile())