This module defines classes and functions for creating messages from
data received from Spec, and for generating messages to be sent to
Spec.
It handles the different message versions (headers 2, 3 and 4).
|
|
|
rawtodictonary(rawstring)
Transform a list as coming from a SPEC associative array to a
dictonary - 2dim arrays are transformed top dict with dict entries. |
source code
|
|
|
dictionarytoraw(dict)
Transform a Python dictionary object to the string format expected by
Spec |
source code
|
|
|
commandListToCommandString(cmdlist)
Convert a command list to a Spec command string. |
source code
|
|
|
msg_cmd_with_return(cmd,
version=4,
order=' < ' )
Return a command with return message |
source code
|
|
|
msg_func_with_return(cmd,
version=4,
order=' < ' )
Return a func with return message |
source code
|
|
|
msg_cmd(cmd,
version=4,
order=' < ' )
Return a command without reply message |
source code
|
|
|
msg_func(cmd,
version=4,
order=' < ' )
Return a func without reply message |
source code
|
|
|
msg_chan_read(channel,
version=4,
order=' < ' )
Return a property-reading message |
source code
|
|
|
msg_chan_send(channel,
value,
version=4,
order=' < ' )
Return a property-setting message |
source code
|
|
|
msg_event(channel,
value,
version=4,
order=' < ' )
Return an event message |
source code
|
|
|
msg_register(channel,
version=4,
order=' < ' )
Return a register message |
source code
|
|
|
msg_unregister(channel,
version=4,
order=' < ' )
Return an unregister message |
source code
|
|
|
msg_close(version=4,
order=' < ' )
Return a close message |
source code
|
|
|
msg_abort(version=4,
order=' < ' )
Return an abort message |
source code
|
|
|
msg_hello(version=4,
order=' < ' )
Return a hello message |
source code
|
|
|
msg_hello_reply(replyID,
serverName,
version=4,
order=' < ' ) |
source code
|
|
|
message_with_reply(cmd,
name,
data,
version=4,
order=' < ' )
Lower level call to send a message of a certain type |
source code
|
|
|
|
|
reply_message(replyID,
name,
data,
version=4,
order=' < ' ) |
source code
|
|
|
error_message(replyID,
name,
data,
version=4,
order=' < ' ) |
source code
|
|