pike.git / lib / modules / Protocols.pmod / Line.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/Line.pmod:282:    //! @[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 @expr{0@} (zero), no timeout will be in effect.    //!    //! @seealso    //! @[touch_time()], @[do_timeout()]    //!    void create(object(Stdio.File) con, int|void timeout)    { -  this_program::con = con; -  this_program::timeout = timeout; +  this::con = con; +  this::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.