Type/Status Reference


Type Table

The types table describes the types used the Match Server Protocol. The width in bits is included for the binary protocol.

NameWidth (bits)Description
byte_order_mark16 Specifies the requested byte order by sending 0xAABB in that byte order. The Match Server supports big-endian and little-endian byte order. The characters 'TX' (0x5458) are used as an escape to switch to text protocol.
version32 Specifies the version of the Match Server protocol. The current version number is 200803.
command8A command number (used in the binary protocol)
status_code8 The status code from a command.
dimension16 The number of a dimension in a Semantic Signature®.
weight32 The weight of a dimension in a Semantic Signature® or of a result from a match query. This value should be divided by the result factor to get the correct floating point value (weights are usually between 0 and 1).
ID32 The ID of a signature in the index.
row_count32 The number of rows in a request or response, the rows follow the row_count value. The contents of the rows are defined by the command.
length32 A generic length which must be >= 0.
time32 See the update_time command.

Status Table

The status table describes the meaning of the status codes returned from certain commands in the Match Server Protocol. Status codes are of type status_code.

NameNumberDescription
OK0 Indicates that the command completed successfully.
NOT_FOUND1 Indicates that the command failed because the specified signature could not be found.
INVALID2 Indicates that the parameters provided are not valid for the command.