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.8 1998/10/16 17:14:19 nisse Exp $ +  * $Id: Line.pmod,v 1.9 2000/05/07 18:36:36 nilsson Exp $    *    * Line-buffered protocol handling.    *    * Henrik Grubbström 1998-05-27    */      class simple   {    static object con;   
pike.git/lib/modules/Protocols.pmod/Line.pmod:99:    touch_time();       read_buffer += data;       string line;       while( (line = read_line()) )    _handle_command(line);    }    -  object(ADT.queue) send_q = ADT.queue(); +  object(ADT.Queue) send_q = ADT.Queue();       static string write_buffer = "";    static void write_callback(mixed ignored)    {    touch_time();       while (!sizeof(write_buffer)) {    if (send_q->is_empty()) {    con->set_write_callback(0);    return;