Go to the latest version of this document.

# ``twisted`.`internet`.`protocol`.`ServerFactory``

class documentation

`class ServerFactory(Factory): (source)`

Known subclasses: `twisted.mail.protocols.POP3Factory`, `twisted.mail.smtp.SMTPFactory`, `twisted.names.server.DNSServerFactory`, `twisted.protocols.ftp.FTPDataPortFactory`, `twisted.protocols.policies.LimitTotalConnectionsFactory`, `twisted.protocols.postfix.PostfixTCPMapDeferringDictServerFactory`, `twisted.protocols.postfix.PostfixTCPMapDictServerFactory`, `twisted.runner.inetd.InetdFactory`, `twisted.spread.pb.PBServerFactory`, `twisted.web.http.HTTPFactory`, `twisted.words.protocols.jabber.xmlstream.XmlStreamServerFactory`, `twisted.words.service.IRCFactory`

View In Hierarchy

Subclass this to indicate that your protocol.Factory is only usable for servers.

Inherited from `Factory`:

Class Method | `forProtocol` | Create a factory for the given protocol.
Method | `buildProtocol` | Create an instance of a subclass of Protocol.
Method | `doStart` | Make sure startFactory is called.
Method | `doStop` | Make sure stopFactory is called.
Method | `logPrefix` | Describe this factory for log messages.
Method | `startFactory` | This will be called before I begin listening on a Port or Connector.
Method | `stopFactory` | This will be called before I stop listening on all Ports/Connectors.
Class Variable | `noisy` | Undocumented
Class Variable | `protocol` | Undocumented
Instance Variable | `numPorts` | Undocumented