SDLFrameType Enumeration Reference

Section Contents

Overview

The data packet’s header and payload combination.

SDLFrameTypeControl

Lowest-level type of packets. They can be sent over any of the defined services. They are used for the control of the services in which they are sent.

Objective-C

SDLFrameTypeControl = 0x00

Swift

case control = 0

SDLFrameTypeSingle

Contains all the data for a particular packet in the payload. The majority of frames sent over the protocol utilize this frame type.

Objective-C

SDLFrameTypeSingle = 0x01

Swift

case single = 1

SDLFrameTypeFirst

The First Frame in a multiple frame payload contains information about the entire sequence of frames so that the receiving end can correctly parse all the frames and reassemble the entire payload. The payload of this frame is only eight bytes and contains information regarding the rest of the sequence.

Objective-C

SDLFrameTypeFirst = 0x02

Swift

case first = 2

SDLFrameTypeConsecutive

The Consecutive Frames in a multiple frame payload contain the actual raw data of the original payload. The parsed payload contained in each of the Consecutive Frames’ payloads should be buffered until the entire sequence is complete.

Objective-C

SDLFrameTypeConsecutive = 0x03

Swift

case consecutive = 3