FACT++  1.0
int update_command_data ( char *  service,
int  conn_id,
BROWSER browserp 
)

Definition at line 696 of file webDid.c.

References bitem::curr_command, get_service_format(), MAX_NAME, sendData(), bitem::service_format_ptr, sprintf(), and WebDID_Debug.

Referenced by update_service_data().

697 {
698  char format[MAX_NAME];
699  char answer[MAX_NAME*3];
700  extern void sendData();
701 
702  if(browserp->service_format_ptr)
703  {
704  get_service_format(browserp->service_format_ptr, service, format);
705 if(WebDID_Debug)
706 printf("CMD data %s %s\n",service,format);
707  }
708  else
709  {
710  strcpy(format,"?");
711  }
712  strcpy(browserp->curr_command, service);
713  sprintf(answer,"To %s (%s)",service, format);
714  sendData(conn_id, answer, 4);
715  return 1;
716 }
#define MAX_NAME
Definition: dim.h:182
int WebDID_Debug
Definition: webServer.c:7
char * service_format_ptr
Definition: webDid.c:80
void sendData(int conn_id, char *buffer, int type)
Definition: webServer.c:240
void get_service_format(char *buffer, char *service, char *format)
Definition: webDid.c:569
sprintf(name1,"NewService%d", i)
char curr_command[MAX_NAME]
Definition: webDid.c:79

+ Here is the call graph for this function:

+ Here is the caller graph for this function: