~justin-fathomdb/nova/justinsb-openstack-api-volumes

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/doc/core/man/mktap-man.html

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE html  PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN'  'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'><html lang="en" xmlns="http://www.w3.org/1999/xhtml">
 
2
  <head>
 
3
<title>Twisted Documentation: MKTAP.1</title>
 
4
<link href="../howto/stylesheet.css" rel="stylesheet" type="text/css"/>
 
5
  </head>
 
6
 
 
7
  <body bgcolor="white">
 
8
    <h1 class="title">MKTAP.1</h1>
 
9
    <div class="toc"><ol><li><a href="#auto0">NAME</a></li><li><a href="#auto1">SYNOPSIS</a></li><li><a href="#auto2">DESCRIPTION</a></li><li><a href="#auto3">portforward options</a></li><li><a href="#auto4">web options</a></li><li><a href="#auto5">toc options</a></li><li><a href="#auto6">mail options</a></li><li><a href="#auto7">telnet options</a></li><li><a href="#auto8">socks options</a></li><li><a href="#auto9">ftp options</a></li><li><a href="#auto10">manhole options</a></li><li><a href="#auto11">words options</a></li><li><a href="#auto12">AUTHOR</a></li><li><a href="#auto13">REPORTING BUGS</a></li><li><a href="#auto14">COPYRIGHT</a></li><li><a href="#auto15">SEE ALSO</a></li></ol></div>
 
10
    <div class="content">
 
11
 
 
12
<span/>
 
13
 
 
14
<h2>NAME<a name="auto0"/></h2>
 
15
 
 
16
<p>mktap - create twisted.servers
 
17
</p>
 
18
 
 
19
<h2>SYNOPSIS<a name="auto1"/></h2>
 
20
 
 
21
<p><strong>mktap</strong> [<em>options</em>] <em>apptype</em> [<em>application_option</em>]...
 
22
</p>
 
23
 
 
24
<p><strong>mktap</strong> <em>apptype</em> --help
 
25
</p>
 
26
 
 
27
<h2>DESCRIPTION<a name="auto2"/></h2>
 
28
 
 
29
<p>The <strong>--help</strong> prints out a usage message to standard output.
 
30
<dl><dt><strong>--debug</strong>, <strong>-d</strong>
 
31
</dt><dd>Show debug information for plugin loading.
 
32
</dd>
 
33
 
 
34
<dt><strong>--progress</strong>, <strong>-p</strong>
 
35
</dt><dd>Show progress information for plugin loading.
 
36
</dd>
 
37
 
 
38
<dt><strong>--encrypted</strong>, <strong>-e</strong>
 
39
</dt><dd>Encrypt file before writing (will make the extension of the resultant file begin with 'e').
 
40
</dd>
 
41
 
 
42
<dt><strong>--uid</strong>, <strong>-u</strong> <em>&lt;uid&gt;</em>
 
43
</dt><dd>Application belongs to this uid, and should run with its permissions.
 
44
</dd>
 
45
 
 
46
<dt><strong>--gid</strong>, <strong>-d</strong> <em>&lt;gid&gt;</em>
 
47
</dt><dd>Application belongs to this gid, and should run with its permissions.
 
48
</dd>
 
49
 
 
50
<dt><strong>--append</strong>, <strong>-a</strong> <em>&lt;file&gt;</em>
 
51
</dt><dd>Append given servers to given file, instead of creating a new one.
 
52
File should be be a tap file.
 
53
</dd>
 
54
 
 
55
<dt><strong>--appname</strong>, <strong>-n</strong> <em>&lt;name&gt;</em>
 
56
</dt><dd>Use the specified name as the process name when the application is run with
 
57
<em>twistd(1)</em>.  This option also causes some initialization code to be
 
58
duplicated when <em>twistd(1)</em> is run.
 
59
</dd>
 
60
 
 
61
<dt><strong>--type</strong>, <strong>-t</strong> <em>&lt;type&gt;</em>
 
62
</dt><dd>Specify the output file type. Available types are:
 
63
pickle - (default) Output as a python pickle file.
 
64
source - Output as a .tas (AOT Python source) file.
 
65
<em>apptype</em>
 
66
Can be 'web', 'portforward', 'toc', 'coil', 'words',  'manhole', 'im', 'news', 'socks', 'telnet', 'parent', 'sibling',  'ftp', and 'mail'. Each of those support different options.
 
67
</dd>
 
68
 
 
69
</dl>
 
70
 
 
71
</p>
 
72
 
 
73
<h2><strong>portforward</strong> options<a name="auto3"/></h2>
 
74
 
 
75
<dl><dt><strong>-h</strong>, <strong>--host</strong> <em>&lt;host&gt;</em>
 
76
</dt><dd>Proxy connections to <em>&lt;host&gt;</em>
 
77
</dd>
 
78
 
 
79
<dt><strong>-d</strong>, <strong>--dest_port</strong> <em>&lt;port&gt;</em>
 
80
</dt><dd>Proxy connections to <em>&lt;port&gt;</em> on remote host.
 
81
</dd>
 
82
 
 
83
<dt><strong>-p</strong>, <strong>--port</strong> <em>&lt;port&gt;</em>
 
84
</dt><dd>Listen locally on <em>&lt;port&gt;</em>
 
85
</dd>
 
86
 
 
87
</dl>
 
88
 
 
89
<h2><strong>web</strong> options<a name="auto4"/></h2>
 
90
 
 
91
<dl><dt><strong>-u</strong>, <strong>--user</strong>
 
92
</dt><dd>Makes a server with ~/public_html and
 
93
~/.twistd-web-pb support for users.
 
94
</dd>
 
95
 
 
96
<dt><strong>--personal</strong>
 
97
</dt><dd>Instead of generating a webserver, generate a
 
98
ResourcePublisher which listens on ~/.twistd-web-pb
 
99
</dd>
 
100
 
 
101
<dt><strong>--path</strong> <em>&lt;path&gt;</em>
 
102
</dt><dd>&lt;path&gt; is either a specific file or a directory to be
 
103
set as the root of the web server. Use this if you
 
104
have a directory full of HTML, cgi, php3, epy, or rpy files or
 
105
any other files that you want to be served up raw.
 
106
</dd>
 
107
 
 
108
<dt><strong>-p</strong>, <strong>--port</strong> <em>&lt;port&gt;</em>
 
109
</dt><dd>&lt;port&gt; is a number representing which port you want to
 
110
start the server on.
 
111
</dd>
 
112
 
 
113
<dt><strong>-m</strong>, <strong>--mime_type</strong> <em>&lt;mimetype&gt;</em>
 
114
</dt><dd>&lt;mimetype&gt; is the default MIME type to use for
 
115
files in a --path web server when none can be determined
 
116
for a particular extension. The default is 'text/html'.
 
117
</dd>
 
118
 
 
119
<dt><strong>--allow_ignore_ext</strong>
 
120
</dt><dd>Specify whether or not a request for 'foo' should return 'foo.ext'.
 
121
Default is off.
 
122
</dd>
 
123
 
 
124
<dt><strong>--ignore-ext</strong> <em>.&lt;extension&gt;</em>
 
125
</dt><dd>Specify that a request for 'foo' should return 'foo.<em>&lt;extension&gt;</em>'.
 
126
</dd>
 
127
 
 
128
<dt><strong>-t</strong>, <strong>--telnet</strong> <em>&lt;port&gt;</em>
 
129
</dt><dd>Run a telnet server on &lt;port&gt;, for additional
 
130
configuration later.
 
131
</dd>
 
132
 
 
133
<dt><strong>-i</strong>, <strong>--index</strong> <em>&lt;name&gt;</em>
 
134
</dt><dd>Use an index name other than <q>index.html</q>
 
135
</dd>
 
136
 
 
137
<dt><strong>--https</strong> <em>&lt;port&gt;</em>
 
138
</dt><dd>Port to listen on for Secure HTTP.
 
139
</dd>
 
140
 
 
141
<dt><strong>-c</strong>, <strong>--certificate</strong> <em>&lt;filename&gt;</em>
 
142
</dt><dd>SSL certificate to use for HTTPS. [default: server.pem]
 
143
</dd>
 
144
 
 
145
<dt><strong>-k</strong>, <strong>--privkey</strong> <em>&lt;filename&gt;</em>
 
146
</dt><dd>SSL certificate to use for HTTPS. [default: server.pem]
 
147
</dd>
 
148
 
 
149
<dt><strong>--processor</strong> <em>&lt;ext&gt;=&lt;class name&gt;</em>
 
150
</dt><dd>Adds a processor to those file names. (Only usable if after
 
151
<strong>--path)</strong> </dd>
 
152
 
 
153
<dt><strong>--resource-script</strong> <em>&lt;script name&gt;</em>
 
154
</dt><dd>Sets the root as a resource script. This script will be re-evaluated on
 
155
every request.
 
156
</dd>
 
157
 
 
158
</dl>
 
159
 
 
160
<p>This creates a web.tap file that can be used by twistd. If you
 
161
specify no arguments, it will be a demo webserver that has the Test
 
162
class from twisted.web.test in it.
 
163
</p>
 
164
 
 
165
<h2><strong>toc</strong> options<a name="auto5"/></h2>
 
166
 
 
167
<dl><dt><strong>-p</strong> <em>&lt;port&gt;</em>
 
168
</dt><dd>&lt;port&gt; is a number representing which port you want to
 
169
start the server on.
 
170
</dd>
 
171
 
 
172
</dl>
 
173
 
 
174
<h2><strong>mail</strong> options<a name="auto6"/></h2>
 
175
 
 
176
<dl><dt><strong>-r</strong>, <strong>--relay</strong> <em>&lt;ip&gt;,&lt;port&gt;=&lt;queue directory&gt;</em>
 
177
</dt><dd>Relay mail to all unknown domains through given IP and port,
 
178
using queue directory as temporary place to place files.
 
179
</dd>
 
180
 
 
181
<dt><strong>-d</strong>, <strong>--domain</strong> <em>&lt;domain&gt;</em>=<em>&lt;path&gt;</em>
 
182
</dt><dd>generate an SMTP/POP3 virtual maildir domain named <q>domain</q> which saves to
 
183
<q>path</q>
 
184
</dd>
 
185
 
 
186
<dt><strong>-u</strong>, <strong>--username</strong> <em>&lt;name&gt;</em>=<em>&lt;password&gt;</em>
 
187
</dt><dd>add a user/password to the last specified domains
 
188
</dd>
 
189
 
 
190
<dt><strong>-b</strong>, <strong>--bounce_to_postmaster</strong>
 
191
</dt><dd>undelivered mails are sent to the postmaster, instead of being rejected.
 
192
</dd>
 
193
 
 
194
<dt><strong>-p</strong>, <strong>--pop</strong> <em>&lt;port&gt;</em>
 
195
</dt><dd>&lt;port&gt; is a number representing which port you want to
 
196
start the pop3 server on.
 
197
</dd>
 
198
 
 
199
<dt><strong>-s</strong>, <strong>--smtp</strong> <em>&lt;port&gt;</em>
 
200
</dt><dd>&lt;port&gt; is a number representing which port you want to
 
201
start the smtp server on.
 
202
</dd>
 
203
 
 
204
</dl>
 
205
 
 
206
<p>This creates a mail.tap file that can be used by twistd(1)
 
207
</p>
 
208
 
 
209
<h2><strong>telnet</strong> options<a name="auto7"/></h2>
 
210
 
 
211
<dl><dt><strong>-p</strong>, <strong>--port</strong> <em>&lt;port&gt;</em>
 
212
</dt><dd>Run the telnet server on &lt;port&gt;
 
213
</dd>
 
214
 
 
215
<dt><strong>-u</strong>, <strong>--username</strong> <em>&lt;name&gt;</em>
 
216
</dt><dd>set the username to &lt;name&gt;
 
217
</dd>
 
218
 
 
219
<dt><strong>-w</strong>, <strong>--password</strong> <em>&lt;password&gt;</em>
 
220
</dt><dd>set the password to &lt;password&gt;
 
221
</dd>
 
222
 
 
223
</dl>
 
224
 
 
225
<h2><strong>socks</strong> options<a name="auto8"/></h2>
 
226
 
 
227
<dl><dt><strong>-i</strong>, <strong>--interface</strong> <em>&lt;interface&gt;</em>
 
228
</dt><dd>Listen on interface &lt;interface&gt;
 
229
</dd>
 
230
 
 
231
<dt><strong>-p</strong>, <strong>--port</strong> <em>&lt;port&gt;</em>
 
232
</dt><dd>Run the SOCKSv4 server on &lt;port&gt;
 
233
</dd>
 
234
 
 
235
<dt><strong>-l</strong>, <strong>--log</strong> <em>&lt;filename&gt;</em>
 
236
</dt><dd>log connection data to &lt;filename&gt;
 
237
</dd>
 
238
 
 
239
</dl>
 
240
 
 
241
<h2><strong>ftp</strong> options<a name="auto9"/></h2>
 
242
 
 
243
<dl><dt><strong>-a</strong>, <strong>--anonymous</strong>
 
244
</dt><dd>Allow anonymous logins
 
245
</dd>
 
246
 
 
247
<dt><strong>-3</strong>, <strong>--thirdparty</strong>
 
248
</dt><dd>Allow third party connections
 
249
</dd>
 
250
 
 
251
<dt><strong>--otp</strong>
 
252
</dt><dd>Use one time passwords (OTP)
 
253
</dd>
 
254
 
 
255
<dt><strong>-p</strong>, <strong>--port</strong> <em>&lt;port&gt;</em>
 
256
</dt><dd>Run the FTP server on &lt;port&gt;
 
257
</dd>
 
258
 
 
259
<dt><strong>-r</strong>, <strong>--root</strong> <em>&lt;path&gt;</em>
 
260
</dt><dd>Define the local root of the FTP server
 
261
</dd>
 
262
 
 
263
<dt><strong>--anonymoususer</strong> <em>&lt;username&gt;</em>
 
264
</dt><dd>Define the the name of the anonymous user
 
265
</dd>
 
266
 
 
267
</dl>
 
268
 
 
269
<h2><strong>manhole</strong> options<a name="auto10"/></h2>
 
270
 
 
271
<dl><dt><strong>-p</strong>, <strong>--port</strong> <em>&lt;port&gt;</em>
 
272
</dt><dd>Run the manhole server on &lt;port&gt;
 
273
</dd>
 
274
 
 
275
<dt><strong>-u</strong>, <strong>--user</strong> <em>&lt;name&gt;</em>
 
276
</dt><dd>set the username to &lt;name&gt;
 
277
</dd>
 
278
 
 
279
<dt><strong>-w</strong>, <strong>--password</strong> <em>&lt;password&gt;</em>
 
280
</dt><dd>set the password to &lt;password&gt;
 
281
</dd>
 
282
 
 
283
</dl>
 
284
 
 
285
<h2><strong>words</strong> options<a name="auto11"/></h2>
 
286
 
 
287
<dl><dt><strong>-p</strong>, <strong>--port</strong> <em>&lt;port&gt;</em>
 
288
</dt><dd>Run the Words server on &lt;port&gt;
 
289
</dd>
 
290
 
 
291
<dt><strong>-i</strong>, <strong>--irc</strong> <em>&lt;port&gt;</em>
 
292
</dt><dd>Run IRC server on port &lt;port&gt;
 
293
</dd>
 
294
 
 
295
<dt><strong>-w</strong>, <strong>--web</strong> <em>&lt;port&gt;</em>
 
296
</dt><dd>Run web server on port &lt;port&gt;
 
297
</dd>
 
298
 
 
299
</dl>
 
300
 
 
301
<h2>AUTHOR<a name="auto12"/></h2>
 
302
 
 
303
<p>Written by Moshe Zadka, based on mktap's help messages
 
304
</p>
 
305
 
 
306
<h2>REPORTING BUGS<a name="auto13"/></h2>
 
307
 
 
308
<p>To report a bug, visit <em>http://twistedmatrix.com/bugs/</em>
 
309
</p>
 
310
 
 
311
<h2>COPYRIGHT<a name="auto14"/></h2>
 
312
 
 
313
<p>Copyright © 2000-2008 Twisted Matrix Laboratories.
 
314
This is free software; see the source for copying conditions.  There is NO
 
315
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
316
</p>
 
317
 
 
318
<h2>SEE ALSO<a name="auto15"/></h2>
 
319
 
 
320
<p>twistd(1)
 
321
</p>
 
322
 
 
323
</div>
 
324
 
 
325
    <p><a href="../howto/index.html">Index</a></p>
 
326
    <span class="version">Version: 10.0.0</span>
 
327
  </body>
 
328
</html>
 
 
b'\\ No newline at end of file'