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

Class message3

source code

SpecMessage --+
              |
             message3

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
Constructor
source code
 
init(self, ser, cmd, name, data, datatype=None, rows=0, cols=0)
Create a message from the arguments
source code
 
readHeader(self, rawstring)
Read the header of the message coming from stream
source code
 
sendingString(self)
Create a string representing the message which can be send over the socket.
source code

Inherited from SpecMessage: dataType, isComplete, readData, readFromStream, sendingDataString

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)

readHeader(self, rawstring)

source code 

Read the header of the message coming from stream

Arguments: rawstring -- raw bytes of the header

Return value: (message data type, message data len) tuple

Overrides: SpecMessage.readHeader
(inherited documentation)

sendingString(self)

source code 

Create a string representing the message which can be send over the socket.

Overrides: SpecMessage.sendingString
(inherited documentation)