*replyMessage;
void *replyPointer;
int len;
int notification = 0; /*
not notification by default */
char * rpcmode = ""; /*no extra text by default */
if (argc > 1 && strcmp (argv[1], "-listpm") == 0) {
/* Get all postmaster! */
int bufferPid[100];
char* bufferText[100];
int noOfPM;
int i;
noOfPM = SPFindActivePostMasters (bufferPid, bufferText, 100);
for (i = 0; i < noOfPM; i++) {
if (bufferText[i] != NULL) {
printf ("Pid: %d, Created: %s\n", bufferPid[i], bufferText[i]);
SPFree (bufferText[i]);
}
}
/* break when ready*/
exit (0);
}
if ( argc > 3 && !strcmp( argv[argc-1], "-notification" ) ) {
notification = 1;
rpcmode = "NOTIFICATION";
argc--;
argv[argc] = 0; /* hide this flag to avoid later confusion */
}
if (argc < 3) {
printf ("usage: %s
[...] [-notification]\n", argv[0]);
exit (1);
…
1. Исходный код
3. Дерево поведения
4. Поведенческие сценарии
2. Базовые протоколы