|
Revision 25168, 488 bytes
(checked in by exarkun, 8 months ago)
|
Merge remove-mktap-3393
Author: kehander1, exarkun
Reviewer: ralphm, itamar
Fixes: #3393
Remove almost all references to mktap(1) from the Twisted documentation.
The finger tutorial still refers to mktap since it also contains an
old-style plugin which will not work with twistd.
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
""" |
|---|
| 7 |
Support module for making TOC servers with twistd. |
|---|
| 8 |
""" |
|---|
| 9 |
|
|---|
| 10 |
from twisted.words.protocols import toc |
|---|
| 11 |
from twisted.python import usage |
|---|
| 12 |
from twisted.application import strports |
|---|
| 13 |
|
|---|
| 14 |
class Options(usage.Options): |
|---|
| 15 |
synopsis = "[-p <port>]" |
|---|
| 16 |
optParameters = [["port", "p", "5190"]] |
|---|
| 17 |
longdesc = "Makes a TOC server." |
|---|
| 18 |
|
|---|
| 19 |
def makeService(config): |
|---|
| 20 |
return strports.service(config['port'], toc.TOCFactory()) |
|---|