Package SpecClient :: Module SpecMessage :: Class anymessage
[hide private]
[frames] | no frames]

Class anymessage

source code

SpecMessage --+
              |
             anymessage

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Constructor
source code
 
readFromStream(self, streamBuf)
Read buffer from stream and try to create a message from it
source code

Inherited from SpecMessage: dataType, isComplete, readData, readHeader, sendingDataString, sendingString

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

source code 

Constructor

Arguments: packedHeader -- string representing the packed header format for the message, use the same syntax as the 'struct' Python module

Overrides: SpecMessage.__init__
(inherited documentation)

readFromStream(self, streamBuf)

source code 

Read buffer from stream and try to create a message from it

Arguments: streamBuf - string buffer of the last bytes received from Spec

Return value : the number of consumed bytes

Overrides: SpecMessage.readFromStream
(inherited documentation)