• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/LPRng/DOCS/LPRng-Reference-Multipart/
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
3<html>
4  <head>
5    <meta name="generator" content="HTML Tidy, see www.w3.org">
6    <title>RFC1179 (LPD) Connection</title>
7    <meta name="GENERATOR" content=
8    "Modular DocBook HTML Stylesheet Version 1.7">
9    <link rel="HOME" title=" LPRng Reference Manual" href=
10    "index.htm">
11    <link rel="UP" title="Printer Communication and Protocols "
12    href="printercomm.htm">
13    <link rel="PREVIOUS" title=
14    "Printer Communication and Protocols " href="printercomm.htm">
15    <link rel="NEXT" title="Socket API " href="socketapi.htm">
16  </head>
17
18  <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
19  "#0000FF" vlink="#840084" alink="#0000FF">
20    <div class="NAVHEADER">
21      <table summary="Header navigation table" width="100%" border=
22      "0" cellpadding="0" cellspacing="0">
23        <tr>
24          <th colspan="3" align="center">LPRng Reference Manual: 5
25          Sep 2003 (For LPRng-3.8.22)</th>
26        </tr>
27
28        <tr>
29          <td width="10%" align="left" valign="bottom"><a href=
30          "printercomm.htm" accesskey="P">Prev</a></td>
31
32          <td width="80%" align="center" valign="bottom">Chapter
33          11. Printer Communication and Protocols</td>
34
35          <td width="10%" align="right" valign="bottom"><a href=
36          "socketapi.htm" accesskey="N">Next</a></td>
37        </tr>
38      </table>
39      <hr align="LEFT" width="100%">
40    </div>
41
42    <div class="SECT1">
43      <h1 class="SECT1"><a name="AEN4867">11.2. RFC1179 (LPD)
44      Connection</a></h1>
45
46      <p>In this mode of operation the print server actually
47      operates as a very limited BSD print spooler. These
48      limitations include:</p>
49
50      <ol type="1">
51        <li>
52          <p>No error messages or status capability</p>
53        </li>
54
55        <li>
56          <p>Limited or very primitive banner printing. On some
57          systems it may be <span class="emphasis"><i class=
58          "EMPHASIS">impossible</i></span> to turn banner printing
59          off.</p>
60        </li>
61
62        <li>
63          <p>On most known print servers high connection activity
64          caused by multiple systems attempting to get status or
65          spool jobs may cause catastrophic failure of the
66          printer.</p>
67        </li>
68      </ol>
69      <br>
70      <br>
71
72      <p>For the above reasons, using RFC1179 to transfer jobs to a
73      printer should be regarded as the least desirable option.
74      Please see <a href="rfc1179ref.htm">The RFC1189 Protocol</a>
75      for a detailed discussion of the RFC1179 protocol.</p>
76
77      <p>In order to use the RFC1179 transfer operation you must
78      have a printcap entry for the printer that provides:</p>
79
80      <ul>
81        <li>
82          <p>The IP address or name of the printer that can be
83          resolved to an IP address</p>
84        </li>
85
86        <li>
87          <p>The name of the spool queue. In practice, this is
88          usually used only to determine which of several printer
89          ports on the print server the job will be sent to, or
90          what type of processing the print server will do. Most
91          cards usually do not do any processing and simply pass
92          the job through to the printer.</p>
93        </li>
94      </ul>
95      <br>
96      <br>
97
98      <p>The following is an example of a simple printcap entry
99      that can be used to send a job to a remote printer using the
100      RFC1179 protocol:</p>
101
102      <div class="INFORMALEXAMPLE">
103        <a name="AEN4887"></a>
104<pre class="SCREEN">
105    # <b class="APPLICATION">LPRng</b> syntax
106    # :lp value is 'where to print the job'
107    lp:
108      :lp=raw@10.0.0.1
109    
110    # OR Vintage BSD Print Spooler Syntax
111    # (<b class="APPLICATION">LPRng</b> supports this as well)
112    # :rp = remote printer, :rm = remote machine or host
113    lp:
114      :rp=raw:rm=10.0.0.1
115</pre>
116      </div>
117      <br>
118      <br>
119
120      <p>If you wish to transfer jobs to a print spooler without
121      using the full <b class="APPLICATION">LPRng</b> <b class=
122      "APPLICATION">lpr</b> program, the Perl <var class=
123      "LITERAL">lpr_in_perl</var> program in the <b class=
124      "APPLICATION">LPRng</b> Distribution <acronym class=
125      "ACRONYM">UTILS</acronym> directory can be used for testing
126      and tutorial purposes.</p>
127    </div>
128
129    <div class="NAVFOOTER">
130      <hr align="LEFT" width="100%">
131
132      <table summary="Footer navigation table" width="100%" border=
133      "0" cellpadding="0" cellspacing="0">
134        <tr>
135          <td width="33%" align="left" valign="top"><a href=
136          "printercomm.htm" accesskey="P">Prev</a></td>
137
138          <td width="34%" align="center" valign="top"><a href=
139          "index.htm" accesskey="H">Home</a></td>
140
141          <td width="33%" align="right" valign="top"><a href=
142          "socketapi.htm" accesskey="N">Next</a></td>
143        </tr>
144
145        <tr>
146          <td width="33%" align="left" valign="top">Printer
147          Communication and Protocols</td>
148
149          <td width="34%" align="center" valign="top"><a href=
150          "printercomm.htm" accesskey="U">Up</a></td>
151
152          <td width="33%" align="right" valign="top">Socket
153          API</td>
154        </tr>
155      </table>
156    </div>
157  </body>
158</html>
159
160