Home | Trees | Indices | Help |
|
---|
|
twisted.internet.protocol.BaseProtocol --+ | twisted.internet.protocol.Protocol --+ | protocol.BaseProtocol --+ | ServerProtocol
The server protocol.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
bool |
|
||
bool |
|
||
bool |
|
||
bool |
|
||
bool |
|
||
bool |
|
||
bool |
|
||
bool |
|
||
bool |
|
||
Inherited from Inherited from |
Class Variables | |
Inherited from Inherited from Inherited from |
Instance Variables | |
latency = None The latency between the server and client. |
|
datagramPort = None The UDP port that the connection sends/receives data on. |
|
Inherited from |
Method Details |
When a connection is made, a timeout timer is started, and if the user does not request connection acceptance within reasonable time, disconnect (to prevent flood attacks).
|
Ping the client with the given timeout.
|
Once the connection is lost, put back the client ID into the pool, and remove the client from all the channels it has signed on to.
|
Called when a packet is received.
|
Sends a packetloader to the client
|
Send a direct message to the client.
|
Remove the client from a specific channel.
|
Add the client to a new channel. If the channel does not already exist, it is created.
|
Sends a list of channels and their peer count to the other end of the connection.
|
Called when the server has accepted the requested connection.
|
Called when the server has accepted the requested name.
|
Called when the client changed name (after logging in).
|
Called when a client message arrives.
|
Called when the client sends a channel message.
|
Called when the client has sent a private message
|
Called when the client has joined a new channel.
|
Called when the client has left a channel.
|
Called when a ping response has been received.
|
Called when after a master action has been executed.
|
Cancels the client login if False is returned. Useful if the server specifies client names.
|
Cancels the client name change if False is returned. Useful if the server specifies client names.
|
Cancels the connection accept response if False is returned. Useful for banning.
|
Cancels the channel message if False is returned. Useful for blocking invalid messages.
|
Cancels the private message if False is returned. Useful for blocking invalid messages.
|
Cancels the sending of the channel list if False is returned. Useful for servers with a strict policy.
|
Cancels the channel join accept response if False is returned. Useful for channel-less servers.
|
Cancels the channel leave accept response if False is returned. Useful if the client may not leave the current channel.
|
Cancels a master action if False is returned. Useful for blocking some specific master actions.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Apr 23 02:18:51 2011 | http://epydoc.sourceforge.net |