FACT++  1.0
int getServerParameters ( char *  buffer,
char *  node,
char *  server,
int *  pid,
int *  browser 
)

Definition at line 149 of file webServer.c.

References getParameters(), and WebDID_Debug.

Referenced by sendData(), and sendSmiData().

150 {
151  char pars[10][32];
152  char *ptrs[10];
153  int ret;
154 
155  strcpy(pars[0],"dimnode=");
156  strcpy(pars[1],"dimserver=");
157  strcpy(pars[2],"dimserverid=");
158  strcpy(pars[3],"browser=");
159  pars[4][0] = '\0';
160  ret = getParameters(buffer, pars, ptrs);
161  if(!ret)
162  return 0;
163  strcpy(node, ptrs[0]);
164  strcpy(server, ptrs[1]);
165  sscanf(ptrs[2],"%d",pid);
166  sscanf(ptrs[3],"%d",browser);
167 if(WebDID_Debug)
168 printf("parse pars - node %s, server %s, pid %d, browser %d\n",node, server, *pid, *browser);
169  return 1;
170 }
Definition: dns.c:26
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: