SECTION 10
Host Application Program
6950 Enterprise Gateway Server User’s Guide 10-23
/*
** sending a ’g’ will reset the terminal and close connection
** with nui_tlnt
*/
tdata[0]=’g’; /* reset this radio only */
tdata[1]=0;
write(ptr–>fdin,tdata,strlen(tdata));
sleep(1); /* don’t shutdown the socket too fast */
shutdown(ptr–>fdin,2); /* shutdown this socket connection
*/
close(ptr–>fdin);
}
if(before != NULL)
{
before–>next = ptr–>next;
if(ptr == tail)
{
tail = before;
}
}
else
{
head = ptr–>next;
if(head == NULL)
tail = NULL;
}
free(ptr);
return(1);
}
/*
***** last line of program */
Summary of Contents for 6950 EGS
Page 1: ...6950 Enterprise Gateway Server USER S GUIDE PN 961 047 091 Revision D September 1999 ...
Page 38: ...SECTION 3 Installation 3 22 6950 Enterprise Gateway Server User s Guide ...
Page 44: ...SECTION 4 Connecting to the 6950 EGS 4 6 6950 Enterprise Gateway Server User s Guide ...
Page 74: ...SECTION 5 Configuring Network Options 5 30 6950 Enterprise Gateway Server User s Guide ...
Page 138: ...SECTION 10 Host Application Program 10 24 6950 Enterprise Gateway Server User s Guide ...
Page 144: ...INDEX Index 6 6950 Enterprise Gateway Server User s Guide ...