FACT++  1.0
int getUpdateRate ( IssueStruct *  issueParam)

Definition at line 2745 of file feeserver.c.

References createLogMessage(), Memory::malloc(), and sprintf().

Referenced by command_handler().

2745  {
2746  char msg[50];
2747 
2748  (*issueParam).result = (char*) malloc(sizeof(unsigned short));
2749  if ((*issueParam).result == 0) {
2750  (*issueParam).size = 0;
2751  return FEE_INSUFFICIENT_MEMORY;
2752  }
2753 
2754  // copy current update rate to ACK result
2755  memcpy((*issueParam).result, &updateRate, sizeof(unsigned short));
2756  (*issueParam).size = sizeof(unsigned short);
2757 # ifdef __DEBUG
2758  printf("update rate is %d\n", updateRate);
2759  fflush(stdout);
2760 # endif
2761  msg[sprintf(msg, "Monitoring update rate is %d.", updateRate)] = 0;
2762  createLogMessage(MSG_DEBUG, msg, 0);
2763 
2764  return FEE_OK;
2765 }
static unsigned short updateRate
Definition: feeserver.c:196
void * malloc()
Definition: EventBuilder.cc:99
void createLogMessage(unsigned int type, char *description, char *origin)
Definition: feeserver.c:1530
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: