Package lacewing :: Package moo :: Module client :: Class MooClientProtocol
[frames] | no frames]

Class MooClientProtocol

source code

twisted.internet.protocol.BaseProtocol --+        
                                         |        
        twisted.internet.protocol.Protocol --+    
                                             |    
                          protocol.MooProtocol --+
                                                 |
                                                MooClientProtocol

Nested Classes
  playerClass
Instance Methods
 
__init__(self, **settings) source code
 
loaderReceived(self, loader)
Called upon receiving a packet from the other end.
source code
 
motdReceived(self, value)
Called upon receiving the MOTD
source code
 
connectionAccepted(self)
Called when the connection has been accepted, and the client notified.
source code
 
messageReceived(self, message, subchannel)
Called upon receiving a server message
source code
 
channelMessageReceived(self, channel, connection, message, subchannel)
Called when a channel message has been received
source code
 
channelJoined(self, channel)
Called when the server has accepted a channel join request.
source code
 
channelLeft(self, channel)
Called when the server has accepted a channel leave request.
source code
 
nameChanged(self, channel, oldName, newName)
Called when the server has told us we've changed our name
source code
 
channelUserJoined(self, channel, client)
Called when a client has joined the channel.
source code
 
channelUserExists(self, channel, client)
Called when a client exists in the channel.
source code
 
channelUserLeft(self, channel, client)
Called when a client has left the channel.
source code
 
channelUserChanged(self, client, oldName, newName)
Called when a client in the channel (including has changed name.
source code
 
changeName(self, name) source code
 
sendMessage(self, value, subchannel, type=None)
Sends a message to the other end
source code
 
sendChannelMessage(self, channel, *arg, **kw) source code
 
joinChannel(self, channelName) source code
 
leaveChannel(self, channel) source code

Inherited from protocol.MooProtocol: dataReceived, sendLoader

Inherited from twisted.internet.protocol.Protocol: connectionLost

Inherited from twisted.internet.protocol.BaseProtocol: __providedBy__, connectionMade, makeConnection

Class Variables
  motd = None
hash(x)

Inherited from protocol.MooProtocol: channels, id, isAccepted, name

Inherited from twisted.internet.protocol.Protocol: __implemented__, __provides__

Inherited from twisted.internet.protocol.BaseProtocol: connected, transport

Method Details

__init__(self, **settings)
(Constructor)

source code 
Overrides: protocol.MooProtocol.__init__

loaderReceived(self, loader)

source code 

Called upon receiving a packet from the other end.

Overrides: protocol.MooProtocol.loaderReceived
(inherited documentation)

messageReceived(self, message, subchannel)

source code 

Called upon receiving a server message

Parameters:

channelMessageReceived(self, channel, connection, message, subchannel)

source code 

Called when a channel message has been received

Parameters:
  • message (lacewing.moo.packetloaders.message.Message object)

channelJoined(self, channel)

source code 

Called when the server has accepted a channel join request.

Parameters:
  • channel - The channel the client has joined.

channelLeft(self, channel)

source code 

Called when the server has accepted a channel leave request.

Parameters:
  • channel - The channel the client has left.

channelUserJoined(self, channel, client)

source code 

Called when a client has joined the channel.

Parameters:
  • channel - The channel the client has joined.

channelUserExists(self, channel, client)

source code 

Called when a client exists in the channel.

Parameters:
  • channel - The channel the client exists in.

channelUserLeft(self, channel, client)

source code 

Called when a client has left the channel.

Parameters:
  • channel - The channel the client has left.