SECTION 10
Host Application Program
10-22 6950 Enterprise Gateway Server User’s Guide
else
{
head = ptr;
tail = ptr;
}
FD_SET(fd, &main_fd_set);
return(1);
}
/*
** This function removes a socket File Descriptor from our
** linked list and sends a reset to the terminal to shut
** it down properly through the nui_tlnt program.
*/
int delete_fd(unsigned int fd)
{
struct LIST *before;
struct LIST *ptr;
int foundflag = 0;
ptr = head;
before = NULL;
while(ptr != NULL)
{
if(ptr–>fdin == fd)
{
foundflag = 1;
break;
}
before = ptr;
ptr = ptr–>next;
}
if(!foundflag)
{
printf(”\nnui_sock: delete_fd Tried to delete an fd not
in list!”);
fflush(stdout);
return(–1);
}
FD_CLR(ptr–>fdin, &main_fd_set);
if(ptr–>fdin > 0)
{
Содержание 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 ...