Home | Trees | Indices | Help |
|
---|
|
twisted.internet.protocol.Factory --+ | twisted.internet.protocol.ServerFactory --+ | ServerFactory
The server factory.
Instance Methods | |||
|
|||
|
|||
str |
|
||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Variables | |
datagram = None hash(x) |
|
Inherited from |
Instance Variables | |
channelClass This is the channel class that will be used when creating a new channel. |
|
timeOut = 8 The number of seconds the client has to send a Hello packet before being disconnected. |
|
pingTime = 8 The interval between pings in seconds |
|
maxPing = None This is the time the client has to respond to pings (in seconds). |
|
maxUsers = 1000 The max number of users allowed on the server. |
|
welcomeMessage =
The message sent to accepted clients. |
|
ping = True If True, pinging will be enabled on the server |
|
channelListing = True If True, channelListing is enabled on the server |
|
masterRights = False If True, this enables the autoclose feature for clients when creating channels |
Method Details |
This will be called before I begin listening on a Port or Connector. It will only be called once, even if the factory is connected to multiple ports. This can be used to perform 'unserialization' tasks that are best put off until things are actually running, such as connecting to a database, opening files, etcetera.
|
This method is called when a connection has been accepted, and a welcome message has to be sent. The default implementation just returns welcomeMessage, but override this method to change that behaviour.
|
Called when a channel has no users in it, and is therefore removed.
|
Called when a new channel is created.
|
Instance Variable Details |
channelClassThis is the channel class that will be used when creating a new channel. Subclass ServerChannel and replace this attribute if you want to change the behaviour of channels. |
timeOutThe number of seconds the client has to send a Hello packet before being disconnected. Can be a number or None for no timeout
|
maxPingThis is the time the client has to respond to pings (in seconds). Can be a number or None for no max ping (default)
|
welcomeMessageThe message sent to accepted clients.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Apr 23 02:18:51 2011 | http://epydoc.sourceforge.net |