pike.git / lib / modules / Protocols.pmod / Line.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/Line.pmod:1:   /* -  * $Id: Line.pmod,v 1.20 2002/11/26 21:39:51 grubba Exp $ +  * $Id: Line.pmod,v 1.21 2003/01/20 17:44:00 nilsson Exp $    *    * Line-buffered protocol handling.    *    * Henrik Grubbström 1998-05-27    */      #pike __REAL_VERSION__      //! Simple nonblocking line-oriented I/O.   class simple
pike.git/lib/modules/Protocols.pmod/Line.pmod:384:       static void read_callback(mixed ignored, string data)    {    touch_time();       read_buffer += data;       while(1) {    if (handle_literal)    { -  if (strlen(read_buffer) < literal_length) +  if (sizeof(read_buffer) < literal_length)    return;    string literal = read_buffer[..literal_length - 1];    read_buffer = read_buffer[literal_length..];       function handler = handle_literal;    handle_literal = 0;       handler(literal);    } else {    string line = read_line();