SECTION 10
Host Application Program
6950 Enterprise Gateway Server User’s Guide 10-15
/*
** check the command line arguments
*/
if(argc < 2)
{
printf(”\nnui_sock: Wrong number of arguments.”);
printf(”\nnui_sock: Usage: nui_sock <portno>\n\n”);
fflush(stdout);
exit(1);
}
/*
** get the port number
*/
strcpy(work_buf,argv[1]);
if(strlen(work_buf) < 1)
{
printf(”\nnui_sock: Invalid portno! Must be numeric and >
0.”);
printf(”\nnui_sock: Usage: nui_sock <portno>\n\n”);
fflush(stdout);
exit(1);
}
ipport=atoi(work_buf);
/*
** set up curses
*/
for(x=0;x<53;x++)
{
printf(”\n”);
}
fflush(stdout);
printf(”\nnui_sock: Native Socket Demo – Version %s
”,VERSION);
fflush(stdout);
Содержание 6950
Страница 1: ...6950 Enterprise Gateway Server USER S GUIDE PN 961 047 091 Revision D September 1999 ...
Страница 38: ...SECTION 3 Installation 3 22 6950 Enterprise Gateway Server User s Guide ...
Страница 44: ...SECTION 4 Connecting to the 6950 EGS 4 6 6950 Enterprise Gateway Server User s Guide ...
Страница 74: ...SECTION 5 Configuring Network Options 5 30 6950 Enterprise Gateway Server User s Guide ...
Страница 86: ...SECTION 6 Configuring Radio Frequency Communication 6 12 6950 Enterprise Gateway Server User s Guide ...
Страница 96: ...SECTION 7 Halting Rebooting or Restarting the 6950 EGS 7 10 6950 Enterprise Gateway Server User s Guide ...
Страница 138: ...SECTION 10 Host Application Program 10 24 6950 Enterprise Gateway Server User s Guide ...
Страница 144: ...INDEX Index 6 6950 Enterprise Gateway Server User s Guide ...