FACT++  1.0
int getServiceParameters ( char *  buffer,
char *  service,
int *  req,
int *  browser,
int *  force 
)

Definition at line 172 of file webServer.c.

References getParameters(), bitem::JSONBuffer, JSONHeader, and WebDID_Debug.

Referenced by sendData(), and sendSmiData().

173 {
174  char pars[10][32];
175  char *ptrs[10];
176  int ret;
177 
178  strcpy(pars[0],"dimservice=");
179  strcpy(pars[1],"reqNr=");
180  strcpy(pars[2],"reqId=");
181  strcpy(pars[3],"force=");
182  pars[4][0] = '\0';
183  ret = getParameters(buffer, pars, ptrs);
184  if(!ret)
185  return 0;
186  strcpy(service, ptrs[0]);
187  sscanf(ptrs[1],"%d",req);
188  sscanf(ptrs[2],"%d",browser);
189  sscanf(ptrs[3],"%d",force);
190 if(WebDID_Debug)
191 printf("\nparse service pars - service %s %d %d %d\n\n",service, *req, *browser, *force);
192  return 1;
193 }
int getParameters(char *buffer, char(*pars)[], char *ptrs[])
Definition: webServer.c:85
int buffer[BUFFSIZE]
Definition: db_dim_client.c:14
int WebDID_Debug
Definition: webServer.c:7

+ Here is the call graph for this function:

+ Here is the caller graph for this function: