pycertifspec.DataTypes #
DataTypes Objects #
class DataTypes()
All supported SPEC data types
SV_DOUBLE #
Not used by SPEC (np.double)
SV_STRING #
Regular string. Basically used for everything by SPEC
SV_ERROR #
An error occurred
SV_ASSOC #
Associative array (dict)
SV_ARR_DOUBLE #
Array of np.double
SV_ARR_FLOAT #
Array of np.single
SV_ARR_LONG #
Array of np.int32
SV_ARR_ULONG #
Array of np.uint32
SV_ARR_SHORT #
Array of np.int16
SV_ARR_USHORT #
Array of np.uint16
SV_ARR_CHAR #
Array of np.byte
SV_ARR_UCHAR #
Array of np.ubyte
SV_ARR_STRING #
Array of np.byte
SV_ARR_LONG64 #
Array of np.int64
SV_ARR_ULONG64 #
Array of np.uint64
NP_TYPES #
Dict containing numpy types for corresponding SPEC array types
ARRAYS #
List containing all SPEC array magic numbers
pycertifspec.EventTypes #
EventTypes Objects #
class EventTypes()
All possible SpecMessage cmd types
SV_CLOSE #
Can be sent by the client to terminate a connection, allowing the server to release resources. Resources will be released in any case, if the server loses the connection to the client.
SV_ABORT #
Sent by the client to abort commands the server is currently running. Receiving an SV_ABORT packet is equivalent to typing ^C at the server keyboard.
SV_CMD #
Sent by the client to place the commands from the data string following the header onto the server command queue.
SV_CMD_WITH_RETURN #
As SV_CMD, but the output generated by the command will be returned to the client in an SV_REPLY packet.
SV_RETURN #
Not currently used.
SV_REGISTER #
Sent by the client to register a property on which to receive events.
SV_UNREGISTER #
Sent by the client to unregister a property, so that events will no longer be sent.
SV_EVENT #
Asynchronous packet sent by the server to clients registered for a property when the property value changes. The packet is also sent when the property is registered with SV_REGISTER.
SV_FUNC #
Sent by the client to put a single function (or command) on the server command queue. The data following the header contains the function (or command) name and any arguments, separated by null bytes. The server will add parentheses, commas or space characters, as needed, depending on whether the first item is a function or a command.
SV_FUNC_WITH_RETURN #
As SV_FUNC, but the result of the function will be returned to the client in an SV_REPLY packet.
SV_CHAN_READ #
Sent by the client to get the value of a property.
SV_CHAN_SEND #
Sent by the client to set the value of a property.
SV_REPLY #
Sent by the server with the result of a command.
SV_HELLO #
Sent by the client to check if the desired server is listening on a particular port. The client should then look for the expected SV_HELLO_REPLY response. The spec client puts a short message in the property name field for debugging purposes, which the server otherwise ignores.
SV_HELLO_REPLY #
Sent by the server in response to an SV_HELLO packet. The data section of the reply contains the name of the spec process by which the server was invoked. That name is used by clients to find servers specified by spec process name.
pycertifspec.Flags #
Flags Objects #
class Flags()
Building blocks for the flags field
Currently only one flag is in use by SPEC
SV_DELETED #
Sent to clients when watched variables or associative array elements are deleted