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.16 2001/04/27 13:38:40 grubba Exp $ +  * $Id: Line.pmod,v 1.17 2002/02/14 01:45:32 nilsson Exp $    *    * Line-buffered protocol handling.    *    * Henrik Grubbström 1998-05-27    */      #pike __REAL_VERSION__      //! Simple nonblocking line-oriented I/O.   class simple   {    static object con; -  +  +  //! The sequence separating lines from eachother. "\r\n" by default.    static constant line_separator = "\r\n";       //! If this variable has been set, multiple lines will be accumulated,    //! until a line with a single @tt{'.'@} (period) is received.    //! @[handle_data()] will then be called with the accumulated data    //! as the argument.    //!    //! @note    //! @[handle_data()] is one-shot, ie it will be cleared when it is called.    //!