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.14 2000/12/28 14:34:20 grubba Exp $ +  * $Id: Line.pmod,v 1.15 2000/12/28 16:43:46 grubba 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:319:    //!    //! If @[lines] is omitted, @[errorcodes] will be used to lookup    //! an appropriate error-message.    //!    //! If @[lines] is a string, it will be split on @tt{'\n'@} (newline),    //! and the error-code interspersed as appropriate.    //!    //! @seealso    //! @[errorcodes]    //! -  void send(int(100,999) code, array(string)|string|void lines) +  void send(int(100 .. 999) code, array(string)|string|void lines)    {    lines = lines || errorcodes[code] || "Error";       if (stringp(lines)) {    lines /= "\n";    }       string init = sprintf("%03d", code);    string res = "";