User's Manual

Table Of Contents
Boomer II User Manual & Integrator’s Guide ______________________________________________ SDK SCRAPI
BM210012WT27 159 Wavenet Technology
/*llen will be zero, so we do not
*/
/*need to send the login message.
*/
/* For DataTAC S000, send encoded login message to RNG
*/
x25_send(. . . [buffer, lien, . . .)
}
. . .
}
scr_Print()
Prototype:
void scr_Print(FILE *l_fp, SCRMsg *lmsg)
Description
This routine prints an ASCII representation of the SCR message
structure to the given file. This is intended to be used for debugging or
tracing purposes.
Input:
*l_fp The file pointer to write the message details to.
*l_msg The message structure to print.
Output: None
Example
#include <scrapi.h>
{
SCRMsg lmsg; /* SCR message struct */
FILE *lfp; /* file to dump message to */
. . .
/* receive a message and decode it into lmsg */
. . .
lfp = fopen(“debug.trc”, "a");
if (lfp != (FILE *)NULL) {
fprintf(lfp, “\nReceived the following
message:\n");
scr_Print(lfp, &lmsg);
fclose(lfp);
}
/* process message */
. . .
}
Sample Output
The output from the scr_Print() function shows the message type,
followed by all the appropriate fields from the message structure.