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.19 2002/11/26 21:28:11 grubba Exp $ +  * $Id: Line.pmod,v 1.20 2002/11/26 21:39:51 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:45:    //! @[handle_data()]    //!    void handle_command(string line);       static int timeout; // Idle time before timeout.    static int timeout_time; // Time at which next timeout will occur.       //! Queue some data to send.    //!    //! @seealso -  //! @[handle_commend()], @[handle_data()], @[disconnect()] +  //! @[handle_command()], @[handle_data()], @[disconnect()]    //!    static void send(string s)    {    send_q->put(s);    con->set_write_callback(write_callback);    }       //! This function is called when a timeout occurrs.    //!    //! Overload this function as appropriate.