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.17 2002/02/14 01:45:32 nilsson Exp $ +  * $Id: Line.pmod,v 1.18 2002/09/21 15:08:31 mast 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:284:    //! @[timeout] is an optional timeout in seconds after which the connection    //! will be closed if there has been no data sent or received.    //!    //! If @[timeout] is @tt{0@} (zero), no timeout will be in effect.    //!    //! @seealso    //! @[touch_time()], @[do_timeout()]    //!    void create(object(Stdio.File) con, int|void timeout)    { -  local::con = con; -  local::timeout = timeout; +  this_program::con = con; +  this_program::timeout = timeout;       // Start the timeout handler.    touch_time();    _timeout_cb();       con->set_nonblocking(read_callback, 0, close_callback);    }   };      //! Nonblocking line-oriented I/O with support for sending SMTP-style codes.