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">
3
<title>Twisted Documentation: MKTAP.1</title>
4
<link href="../howto/stylesheet.css" rel="stylesheet" type="text/css"/>
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>
14
<h2>NAME<a name="auto0"/></h2>
16
<p>mktap - create twisted.servers
19
<h2>SYNOPSIS<a name="auto1"/></h2>
21
<p><strong>mktap</strong> [<em>options</em>] <em>apptype</em> [<em>application_option</em>]...
24
<p><strong>mktap</strong> <em>apptype</em> --help
27
<h2>DESCRIPTION<a name="auto2"/></h2>
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.
34
<dt><strong>--progress</strong>, <strong>-p</strong>
35
</dt><dd>Show progress information for plugin loading.
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').
42
<dt><strong>--uid</strong>, <strong>-u</strong> <em><uid></em>
43
</dt><dd>Application belongs to this uid, and should run with its permissions.
46
<dt><strong>--gid</strong>, <strong>-d</strong> <em><gid></em>
47
</dt><dd>Application belongs to this gid, and should run with its permissions.
50
<dt><strong>--append</strong>, <strong>-a</strong> <em><file></em>
51
</dt><dd>Append given servers to given file, instead of creating a new one.
52
File should be be a tap file.
55
<dt><strong>--appname</strong>, <strong>-n</strong> <em><name></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.
61
<dt><strong>--type</strong>, <strong>-t</strong> <em><type></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.
66
Can be 'web', 'portforward', 'toc', 'coil', 'words', 'manhole', 'im', 'news', 'socks', 'telnet', 'parent', 'sibling', 'ftp', and 'mail'. Each of those support different options.
73
<h2><strong>portforward</strong> options<a name="auto3"/></h2>
75
<dl><dt><strong>-h</strong>, <strong>--host</strong> <em><host></em>
76
</dt><dd>Proxy connections to <em><host></em>
79
<dt><strong>-d</strong>, <strong>--dest_port</strong> <em><port></em>
80
</dt><dd>Proxy connections to <em><port></em> on remote host.
83
<dt><strong>-p</strong>, <strong>--port</strong> <em><port></em>
84
</dt><dd>Listen locally on <em><port></em>
89
<h2><strong>web</strong> options<a name="auto4"/></h2>
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.
96
<dt><strong>--personal</strong>
97
</dt><dd>Instead of generating a webserver, generate a
98
ResourcePublisher which listens on ~/.twistd-web-pb
101
<dt><strong>--path</strong> <em><path></em>
102
</dt><dd><path> 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.
108
<dt><strong>-p</strong>, <strong>--port</strong> <em><port></em>
109
</dt><dd><port> is a number representing which port you want to
113
<dt><strong>-m</strong>, <strong>--mime_type</strong> <em><mimetype></em>
114
</dt><dd><mimetype> 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'.
119
<dt><strong>--allow_ignore_ext</strong>
120
</dt><dd>Specify whether or not a request for 'foo' should return 'foo.ext'.
124
<dt><strong>--ignore-ext</strong> <em>.<extension></em>
125
</dt><dd>Specify that a request for 'foo' should return 'foo.<em><extension></em>'.
128
<dt><strong>-t</strong>, <strong>--telnet</strong> <em><port></em>
129
</dt><dd>Run a telnet server on <port>, for additional
133
<dt><strong>-i</strong>, <strong>--index</strong> <em><name></em>
134
</dt><dd>Use an index name other than <q>index.html</q>
137
<dt><strong>--https</strong> <em><port></em>
138
</dt><dd>Port to listen on for Secure HTTP.
141
<dt><strong>-c</strong>, <strong>--certificate</strong> <em><filename></em>
142
</dt><dd>SSL certificate to use for HTTPS. [default: server.pem]
145
<dt><strong>-k</strong>, <strong>--privkey</strong> <em><filename></em>
146
</dt><dd>SSL certificate to use for HTTPS. [default: server.pem]
149
<dt><strong>--processor</strong> <em><ext>=<class name></em>
150
</dt><dd>Adds a processor to those file names. (Only usable if after
151
<strong>--path)</strong> </dd>
153
<dt><strong>--resource-script</strong> <em><script name></em>
154
</dt><dd>Sets the root as a resource script. This script will be re-evaluated on
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.
165
<h2><strong>toc</strong> options<a name="auto5"/></h2>
167
<dl><dt><strong>-p</strong> <em><port></em>
168
</dt><dd><port> is a number representing which port you want to
174
<h2><strong>mail</strong> options<a name="auto6"/></h2>
176
<dl><dt><strong>-r</strong>, <strong>--relay</strong> <em><ip>,<port>=<queue directory></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.
181
<dt><strong>-d</strong>, <strong>--domain</strong> <em><domain></em>=<em><path></em>
182
</dt><dd>generate an SMTP/POP3 virtual maildir domain named <q>domain</q> which saves to
186
<dt><strong>-u</strong>, <strong>--username</strong> <em><name></em>=<em><password></em>
187
</dt><dd>add a user/password to the last specified domains
190
<dt><strong>-b</strong>, <strong>--bounce_to_postmaster</strong>
191
</dt><dd>undelivered mails are sent to the postmaster, instead of being rejected.
194
<dt><strong>-p</strong>, <strong>--pop</strong> <em><port></em>
195
</dt><dd><port> is a number representing which port you want to
196
start the pop3 server on.
199
<dt><strong>-s</strong>, <strong>--smtp</strong> <em><port></em>
200
</dt><dd><port> is a number representing which port you want to
201
start the smtp server on.
206
<p>This creates a mail.tap file that can be used by twistd(1)
209
<h2><strong>telnet</strong> options<a name="auto7"/></h2>
211
<dl><dt><strong>-p</strong>, <strong>--port</strong> <em><port></em>
212
</dt><dd>Run the telnet server on <port>
215
<dt><strong>-u</strong>, <strong>--username</strong> <em><name></em>
216
</dt><dd>set the username to <name>
219
<dt><strong>-w</strong>, <strong>--password</strong> <em><password></em>
220
</dt><dd>set the password to <password>
225
<h2><strong>socks</strong> options<a name="auto8"/></h2>
227
<dl><dt><strong>-i</strong>, <strong>--interface</strong> <em><interface></em>
228
</dt><dd>Listen on interface <interface>
231
<dt><strong>-p</strong>, <strong>--port</strong> <em><port></em>
232
</dt><dd>Run the SOCKSv4 server on <port>
235
<dt><strong>-l</strong>, <strong>--log</strong> <em><filename></em>
236
</dt><dd>log connection data to <filename>
241
<h2><strong>ftp</strong> options<a name="auto9"/></h2>
243
<dl><dt><strong>-a</strong>, <strong>--anonymous</strong>
244
</dt><dd>Allow anonymous logins
247
<dt><strong>-3</strong>, <strong>--thirdparty</strong>
248
</dt><dd>Allow third party connections
251
<dt><strong>--otp</strong>
252
</dt><dd>Use one time passwords (OTP)
255
<dt><strong>-p</strong>, <strong>--port</strong> <em><port></em>
256
</dt><dd>Run the FTP server on <port>
259
<dt><strong>-r</strong>, <strong>--root</strong> <em><path></em>
260
</dt><dd>Define the local root of the FTP server
263
<dt><strong>--anonymoususer</strong> <em><username></em>
264
</dt><dd>Define the the name of the anonymous user
269
<h2><strong>manhole</strong> options<a name="auto10"/></h2>
271
<dl><dt><strong>-p</strong>, <strong>--port</strong> <em><port></em>
272
</dt><dd>Run the manhole server on <port>
275
<dt><strong>-u</strong>, <strong>--user</strong> <em><name></em>
276
</dt><dd>set the username to <name>
279
<dt><strong>-w</strong>, <strong>--password</strong> <em><password></em>
280
</dt><dd>set the password to <password>
285
<h2><strong>words</strong> options<a name="auto11"/></h2>
287
<dl><dt><strong>-p</strong>, <strong>--port</strong> <em><port></em>
288
</dt><dd>Run the Words server on <port>
291
<dt><strong>-i</strong>, <strong>--irc</strong> <em><port></em>
292
</dt><dd>Run IRC server on port <port>
295
<dt><strong>-w</strong>, <strong>--web</strong> <em><port></em>
296
</dt><dd>Run web server on port <port>
301
<h2>AUTHOR<a name="auto12"/></h2>
303
<p>Written by Moshe Zadka, based on mktap's help messages
306
<h2>REPORTING BUGS<a name="auto13"/></h2>
308
<p>To report a bug, visit <em>http://twistedmatrix.com/bugs/</em>
311
<h2>COPYRIGHT<a name="auto14"/></h2>
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.
318
<h2>SEE ALSO<a name="auto15"/></h2>
325
<p><a href="../howto/index.html">Index</a></p>
326
<span class="version">Version: 10.0.0</span>
b'\\ No newline at end of file'