Difference between revisions of "OpenIGTLink/ProtocolV2/Type/String"
From NAMIC Wiki
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[OpenIGTLink/ProtocolV2/ | + | [[OpenIGTLink/ProtocolV2/Index | << Version 2 Index Page]] |
=Summary= | =Summary= | ||
Line 15: | Line 15: | ||
| align="left" | ENCODING | | align="left" | ENCODING | ||
| align="left" | uint16 | | align="left" | uint16 | ||
− | | align="left" | | + | | align="left" | Character encoding type as MIBenum value (defined by IANA). Default=3. |
|- | |- | ||
| align="left" | LENGTH | | align="left" | LENGTH | ||
− | | align="left" | | + | | align="left" | uint16 |
| align="left" | Length of string (bytes) | | align="left" | Length of string (bytes) | ||
|- | |- | ||
| align="left" | STRING | | align="left" | STRING | ||
− | | align="left" | uint8[ | + | | align="left" | uint8[LENGTH] |
| align="left" | Byte array of the string | | align="left" | Byte array of the string | ||
|- | |- | ||
|} | |} | ||
+ | |||
+ | For character encoding, please refer [http://www.iana.org/assignments/character-sets IANA Character Sets]. | ||
+ | |||
+ | US-ASCII (ANSI-X3.4-1968; MIBenum = 3) is strongly recommended. | ||
==GET_STRING== | ==GET_STRING== |
Latest revision as of 04:44, 30 November 2011
Home < OpenIGTLink < ProtocolV2 < Type < StringContents
Summary
STRING message type is used for transferring a character string. It supports character strings up to 65535 bytes.
Message Types
STRING
Data | Type | Description |
ENCODING | uint16 | Character encoding type as MIBenum value (defined by IANA). Default=3. |
LENGTH | uint16 | Length of string (bytes) |
STRING | uint8[LENGTH] | Byte array of the string |
For character encoding, please refer IANA Character Sets.
US-ASCII (ANSI-X3.4-1968; MIBenum = 3) is strongly recommended.
GET_STRING
Data | Type | Description |
STT_STRING
N/A
STP_STRING
N/A
RTS_STRING
N/A
Implementations
The TDATA message type is implemented in the following source code.
Contributors
Junichi Tokuda