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

Class HappyChatTCPBasedProtocol

Known Subclasses:
HappyChatDefaultProtocol, HappyChatPendingProtocol, HappylolPendingProtocol

Base class for TCP based protocol, used by highwave client side like flash program
Method Summary
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

getCommand(self, data)

get the command of the raw XML structure

@return the command to do.
Parameters:
data - XML raw string structure.
           (type=string from a socket read.)
Returns:
tuple of (method, Element).

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
Returns:
None

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