FACT++  1.0
void get_curr_service_format ( )

Definition at line 516 of file webDid.c.

References Curr_service_format, and dic_get_format().

Referenced by recv_service_info().

517 {
518  char *format;
519  char *dic_get_format();
520 /*
521  char str[256], *ptr, *ptr1;
522  int rpc_flag;
523 
524  strcpy(str,Curr_service_name);
525  rpc_flag = 0;
526  if( (ptr = strstr(str,"/RpcIn")) )
527  {
528  *ptr = '\0';
529  rpc_flag = 1;
530  }
531  if( (ptr = strstr(str,"/RpcOut")) )
532  {
533  *ptr = '\0';
534  rpc_flag = 2;
535  }
536  strcat(str,"|");
537 */
538  format = dic_get_format(0);
539 /*
540  if( (ptr = strstr(Curr_service_list,str)) )
541  {
542  if(!rpc_flag)
543  {
544  ptr += (int)strlen(str);
545  ptr1 = strchr(ptr,'|');
546  }
547  else if(rpc_flag == 1)
548  {
549  ptr += (int)strlen(str);
550  ptr1 = strchr(ptr,',');
551  }
552  else
553  {
554  ptr += (int)strlen(str);
555  ptr = strchr(ptr,',');
556  ptr++;
557  ptr1 = strchr(ptr,'|');
558  }
559  strncpy(Curr_service_format,ptr,(int)(ptr1 - ptr));
560  Curr_service_format[(int)(ptr1-ptr)] = '\0';
561  }
562 */
563  if(format)
564  strcpy(Curr_service_format,format);
565  else
566  Curr_service_format[0] = '\0';
567 }
char Curr_service_format[256]
Definition: webDid.c:102
char * dic_get_format(unsigned serv_id)
Definition: dic.c:961

+ Here is the call graph for this function:

+ Here is the caller graph for this function: