telnetd/UGStub.cpp
/*--- function tcp_send_log -------------------------------------
 *
 *  Exit:   Returns 0 if success
 */
function tcp_send_log
Exit:   Returns 0 if success
function tcp_send_log Exit : Returns 0 if success
short tcp_send_log (short id,
          unsigned char *buff,
          unsigned short len,
          unsigned short flags)
{
   if(Connection[id].logging) {
      LogTransmission(&Connection[id],(char *)buff,(int) len-2,"[em2ug]");
   }
   return tcp_send(id,buff,len,flags);
}
short tcp_send_log ( short id , unsigned char * buff , unsigned short len , unsigned short flags ) { if ( Connection [ id ] . logging ) { LogTransmission ( & Connection [ id ] , ( char * ) buff , ( int ) len - 2 , " " ) ; } return tcp_send ( id , buff , len , flags ) ; }
function tcp_send_log
  Exit:   Returns 0 if success
function tcp_send_log Exit : Returns 0 if success
// Log this transmission.  Ignore the last two bytes, which // are just telnet EOR.