telnetd/UGStub.cpp
/*--- function send_2_host -------------------------------------
 *
 *  Exit:   Returns 0 if success
 */
function send_2_host
Exit:   Returns 0 if success
function send_2_host Exit : Returns 0 if success
short send_2_host (struct message * buffptr)
{
   short id = buffptr->stn;
   unsigned char *bufst = buffptr->buff;
   unsigned short len = buffptr->msglen;
   bufst[len++] = TELNET_IAC;
   bufst[len++] = TELNET_EOR;
   return tcp_send_log(id,bufst,len,0);
}
short send_2_host ( struct message * buffptr ) { short id = buffptr -> stn ; unsigned char * bufst = buffptr -> buff ; unsigned short len = buffptr -> msglen ; bufst [ len ++ ] = TELNET_IAC ; bufst [ len ++ ] = TELNET_EOR ; return tcp_send_log ( id , bufst , len , 0 ) ; }
function send_2_host
  Exit:   Returns 0 if success
function send_2_host Exit : Returns 0 if success
// Tack on TELNET end-of-record to message before sending.