Message Header

IOTMP Message Header

The header is a part of a message that contains information about the type of message and the size of the data being transmitted.

Each IOTMP message contains a header that describes the Type and its Size over the wire. The minimum header length is 2 bytes.

FieldTypeMandatoryDescription

Yes

Specifies the Message Type.

Yes

Specifies the Message Size, without taking into account the header size.

Message Type

A message type can be any of the following:

Message TypeValueDescription

Reserved

0x00

Reserved field

0x01

Success

0x02

Error

0x03

Initiates a connection and its parameters

0x04

Disconnect the current connection

0x05

Keep connection alive

0x06

Execute a resource

0x07

Describe available resources

0x08

Start a stream on the specified resource

0x09

Stop the ongoing stream

0x0A

Stream data

Message Size

This field specifies the message size in bytes, that is, the remaining number of bytes on the stream (including zero if the message has no remaining bytes).

Last updated