8 char str[132] = {
'\0'};
22 printf(
" Command %s Successfully Sent\n",
str);
27 printf(
" Command %s Unsuccessfull\n",
str);
75 char data[1024] = {
'\0'};
76 int data_int, data_int_flag = 0;
77 char dns_node[128], *ptr;
81 for(i = 1; i < argc; i++)
83 if(!strcmp(argv[i],
"-dns"))
85 strcpy(dns_node,argv[i+1]);
86 if((ptr = strchr(dns_node,
':')))
90 sscanf(ptr,
"%d",&dns_port);
94 else if(!strcmp(argv[i],
"-s"))
98 else if(!strcmp(argv[i],
"-i"))
106 strcpy(
str, argv[i]);
110 strcpy(data,argv[i]);
124 printf(
"dim_send_command: Insufficient parameters\n");
125 printf(
"usage: dim_send_command <cmnd_name> [<data>] [-dns <dns_node>] [-s] [-i]\n");
132 sscanf(data,
"%d",&data_int);
int dic_set_dns_node(char *node)
int dic_set_dns_port(int port)
void rout(int *tag, int *code)
int main(int argc, char **argv)
void dim_print_date_time()
int dic_cmnd_callback(char *serv_name, void *serv_address, int serv_size, void(*usr_routine)(), dim_long tag)