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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/LPD.pmod:1:   //   // LPD.pmod: an implementation of the BSD lpd protocol (RFC 1179).   // This is a module for pike.   // 3 July 1998 <hww3@riverweb.com> Bill Welliver   // - // $Id: LPD.pmod,v 1.7 2002/06/14 16:59:48 bill Exp $ + // $Id: LPD.pmod,v 1.8 2002/06/17 10:54:29 mast Exp $   //      #pike __REAL_VERSION__      //! A client for communicating with printers and print spoolers that   //! support the BSD lpd protocol (RFC 1179).   class client {    string host;    int port;    private object conn;
pike.git/lib/modules/Protocols.pmod/LPD.pmod:218:    if(!connect(host, port))    return 0;       conn->write(sprintf("%c%s\n", 04, queue));    string resp= conn->read();    conn->close();    return resp;    }      //! Create a new LPD client connection. - //! @param hostname contains the hostname or ipaddress of the print host. + //! @param hostname + //! Contains the hostname or ipaddress of the print host.   //! if not provided, defaults to @i{localhost@}. - //! @param portnum contains the port the print host is listening on. + //! @param portnum + //! Cntains the port the print host is listening on.   //! if not provided, defaults to port @i{515@}, the RFC 1179 standard.    void create(string|void hostname, int|void portnum)    {    host=hostname || "localhost";    port=portnum || 515;    conn=Stdio.File();    jobnum=1;    }   }