telnetd/UGStub.cpp
/*--- function ug_init_tel_screens ----------------------------------
 *
 *  Do initialization that, in UniGate, would be done by FEP3.C.
 *
 *  Mark telnet screens as unallocated.
 */
function ug_init_tel_screens
Do initialization that, in UniGate, would be done by FEP3.C.

Mark telnet screens as unallocated.
function ug_init_tel_screens Do initialization that in UniGate would be done by FEP3 . C . Mark telnet screens as unallocated .
void
ug_init_tel_screens()
{
   int i,j;
   for (i = 1; i <= TELNET_TOTAL_CONNS; i++)
   {
      for (j = 0; j <= MAX_PAGES; j++)
         tel_screen_buffs[i].buf_num[j] = -1;
#ifdef UNI_VT
      tel_screen_buffs[i].term_state = TERMSTATE_RECV1;
      tel_screen_buffs[i].status_state = 0;
      tel_screen_buffs[i].alt_delim = (unsigned char)ug_globals.UseAlternateDelimiters;
      tel_screen_buffs[i].upshift = TRUE;
#endif
   }
}
void ug_init_tel_screens ( ) { int i , j ; for ( i = 1 ; i <= TELNET_TOTAL_CONNS ; i ++ ) { for ( j = 0 ; j <= MAX_PAGES ; j ++ ) tel_screen_buffs [ i ] . buf_num [ j ] = -1 ; #ifdef UNI_VT tel_screen_buffs [ i ] . term_state = TERMSTATE_RECV1 ; tel_screen_buffs [ i ] . status_state = 0 ; tel_screen_buffs [ i ] . alt_delim = ( unsigned char ) ug_globals . UseAlternateDelimiters ; tel_screen_buffs [ i ] . upshift = TRUE ; #endif } }
function ug_init_tel_screens
  Do initialization that, in UniGate, would be done by FEP3.C.
function ug_init_tel_screens Do initialization that in UniGate would be done by FEP3 . C .
/* Specify that no screen buffs are allocated. */