2
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
3
# See LICENSE for details.
7
Support module for making TOC servers with twistd.
10
from twisted.words.protocols import toc
11
from twisted.python import usage
12
from twisted.application import strports
14
class Options(usage.Options):
15
synopsis = "[-p <port>]"
16
optParameters = [["port", "p", "5190"]]
17
longdesc = "Makes a TOC server."
19
def makeService(config):
20
return strports.service(config['port'], toc.TOCFactory())