blob: ce79bb89d800ad4aef6866eb25a23b37e168a26d [file] [log] [blame]
# Copyright (c) 2001-2004 Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Support module for making TOC servers with twistd.
"""
from twisted.words.protocols import toc
from twisted.python import usage
from twisted.application import strports
class Options(usage.Options):
synopsis = "[-p <port>]"
optParameters = [["port", "p", "5190"]]
longdesc = "Makes a TOC server."
def makeService(config):
return strports.service(config['port'], toc.TOCFactory())