FACT++  1.0
void do_show_clients ( SERVER servp)

Definition at line 2895 of file didMarkus.c.

References create_str(), Curr_client_id, Curr_client_list, delete_str(), i, item::server, sprintf(), and str.

Referenced by main(), and show_clients().

2896 {
2897 int i = 0;
2898 char str[2048], *strp, *strp1;
2899 DNS_SERVER_INFO *ptr;
2900 XmString xstr;
2901 void delete_str();
2902 
2903  ptr = &servp->server;
2904  /*
2905  sel_id = servp->pop_widget_id[1];
2906  id = (Widget)XmSelectionBoxGetChild(sel_id,XmDIALOG_LIST_LABEL);
2907  */
2908  if(Curr_client_list[0] == -1)
2909  {
2910  sprintf(str,"Information not available\n");
2911  XmListAddItem(Curr_client_id,create_str(str),i+1);
2912  /*
2913  set_something(sel_id,XmNlistLabelString,str);
2914  */
2915  return;
2916  }
2917  /*
2918  sprintf(str,"Clients of %s are : \n",
2919  ptr->task);
2920  set_something(sel_id,XmNlistLabelString,str);
2921 
2922  id = (Widget)XmSelectionBoxGetChild(sel_id,XmDIALOG_LIST);
2923  XmListDeleteAllItems(id);
2924  */
2925  strp1 = Curr_client_list;
2926  while(strp1)
2927  {
2928  if(!*strp1)
2929  break;
2930  sprintf(str,"Process ");
2931  strp = strp1;
2932  strp1 = strchr(strp,'@');
2933  *strp1 = '\0';
2934  strp1++;
2935  strcat(str,strp);
2936  strcat(str," on node ");
2937  strp = strp1;
2938  if( (strp1 = strchr(strp,'|')) )
2939  {
2940  *strp1 = '\0';
2941  strp1++;
2942  }
2943  strcat(str,strp);
2944  xstr = create_str(str);
2945  XmListAddItem(Curr_client_id,xstr,i+1);
2946  delete_str(xstr);
2947  i++;
2948  }
2949  if(!i)
2950  {
2951  sprintf(str,"NONE");
2952  xstr = create_str(str);
2953  XmListAddItem(Curr_client_id,xstr,i+1);
2954  delete_str(xstr);
2955  }
2956  /*
2957  set_something(id,XmNlistItemCount,i);
2958  */
2959  /*
2960  if(Matrix_id[Curr_matrix])
2961  XFlush(XtDisplay(Matrix_id[Curr_matrix]));
2962  */
2963 }
int i
Definition: db_dim_client.c:21
char str[80]
Definition: test_client.c:7
char * Curr_client_list
Definition: didMarkus.c:24
DNS_SERVER_INFO server
Definition: did.h:44
void delete_str(XmString str)
Definition: dui_util.c:55
XmString create_str()
Widget Curr_client_id
Definition: didMarkus.c:26
sprintf(name1,"NewService%d", i)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: