Package HappyChat :: Module HappyChatProtocol :: Class HappyChatPendingProtocol
[show private | hide private]
[frames | no frames]

Class HappyChatPendingProtocol

HappyChatTCPBasedProtocol --+
                            |
                           HappyChatPendingProtocol


Pending protocol is used by connection before authentification Because actions are differents, protocol is different.
Method Summary
  do_pong(self, socket, element)
handle a pong request this is the first request ask by avatar client send a session_id.
  getWorld(self)
Get the world singleton
    Inherited from HappyChatTCPBasedProtocol
tuple of (method, Element). getCommand(self, data)
get the command of the raw XML structure
  onQuery(self, socket, data, world)
call on each query get the command to execute in the raw XML structure the executed action can me a method of this class or a function in a module in the actions package

Method Details

do_pong(self, socket, element)

handle a pong request this is the first request ask by avatar client send a session_id.
Parameters:
element - The element created by parsing the received XML
           (type=Element)
Returns:
None

getWorld(self)

Get the world singleton

Generated by Epydoc 2.1 on Tue Sep 14 21:34:47 2004 http://epydoc.sf.net