/[inetutils]/inetutils/telnetd/utility.c
ViewVC logotype

Diff of /inetutils/telnetd/utility.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.13 by ams, Sat Jan 22 14:56:11 2005 UTC revision 1.14 by gray, Sun Jul 31 20:05:12 2005 UTC
# Line 13  Line 13 
13     GNU General Public License for more details.     GNU General Public License for more details.
14    
15     You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License
16     along with GNU Inetutils; see the file COPYING.  If not, write to     along with GNU Inetutils; see the file COPYING.  If not, write
17     the Free Software Foundation, Inc., 59 Temple Place - Suite 330,     to the Free Software Foundation, Inc., 51 Franklin Street,
18     Boston, MA 02111-1307, USA. */     Fifth Floor, Boston, MA 02110-1301 USA. */
19    
20  #define TELOPTS  #define TELOPTS
21  #define TELCMDS  #define TELCMDS
# Line 370  pty_read () Line 370  pty_read ()
370    
371    
372  /* io_drain ()  /* io_drain ()
373   *   *  
374   *   *  
375   *      A small subroutine to flush the network output buffer, get some data   *      A small subroutine to flush the network output buffer, get some data
376   * from the network, and pass it through the telnet state machine.  We   * from the network, and pass it through the telnet state machine.  We
377   * also flush the pty input buffer (by dropping its data) if it becomes   * also flush the pty input buffer (by dropping its data) if it becomes
# Line 440  stilloob (int s) Line 440  stilloob (int s)
440    
441  /*  /*
442   * nextitem()   * nextitem()
443   *   *  
444   *      Return the address of the next "item" in the TELNET data   *      Return the address of the next "item" in the TELNET data
445   * stream.  This will be the address of the next character if   * stream.  This will be the address of the next character if
446   * the current address is a user data character, or it will   * the current address is a user data character, or it will
# Line 480  nextitem (char *current) Line 480  nextitem (char *current)
480    
481  /*  /*
482   * netclear()   * netclear()
483   *   *  
484   *      We are about to do a TELNET SYNCH operation.  Clear   *      We are about to do a TELNET SYNCH operation.  Clear
485   * the path to the network.   * the path to the network.
486   *   *  
487   *      Things are a bit tricky since we may have sent the first   *      Things are a bit tricky since we may have sent the first
488   * byte or so of a previous TELNET command into the network.   * byte or so of a previous TELNET command into the network.
489   * So, we have to scan the network buffer from the beginning   * So, we have to scan the network buffer from the beginning
490   * until we are up to where we want to be.   * until we are up to where we want to be.
491   *   *  
492   *      A side effect of what we do, just to keep things   *      A side effect of what we do, just to keep things
493   * simple, is to clear the urgent data pointer.  The principal   * simple, is to clear the urgent data pointer.  The principal
494   * caller should be setting the urgent data pointer AFTER calling   * caller should be setting the urgent data pointer AFTER calling

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26