TSDuck Version 3.16-1064 (TSDuck - The MPEG Transport Stream Toolkit)
ts::tlv Namespace Reference

Namespace for TLV protocols (Tag / Length / Value) More...

Classes

class  Analyzer
 Analysis (deserialization) of TLV messages. More...
 
class  ChannelMessage
 Base class for DVB SimulCrypt TLV messages operating on channels. More...
 
class  Connection
 TCP connection using TLV messages. More...
 
class  DeserializationInternalError
 Exception raised by deserialization of messages. More...
 
class  Logger
 A logger class for TLV messagesThis class encapsulates a logging and debug facility for TLV messages. More...
 
class  Message
 Abstract base class for TLV messagesAll messages use the same structure as the DVB interfaces defined in the "DVB Simulcrypt Head End" standard, that is to say a TLV protocol. More...
 
class  MessageFactory
 Factory class for TLV messagesThe following methods should be used by the application to deserialize messages: More...
 
class  Protocol
 The class ts::tlv::Protocol defines the syntax of a TLV protocol. More...
 
class  Serializer
 Serialization of TLV messages. More...
 
class  StreamMessage
 Base class for DVB SimulCrypt TLV messages operating on streams. More...
 

Typedefs

typedef uint16_t LENGTH
 Type for TLV length fields (16 bits).
 
typedef SafePtr< MessageFactory, NullMutexMessageFactoryPtr
 Safe pointer for MessageFactory (not thread-safe).
 
typedef SafePtr< Message, NullMutexMessagePtr
 Safe pointer for TLV messages (not thread-safe).
 
typedef SafePtr< Message, MutexMessagePtrMT
 Safe pointer for TLV messages (thread-safe).
 
typedef uint16_t TAG
 Type for TLV tags (16 bits).
 
typedef uint8_t VERSION
 Type for TLV protocol version (8 bits).
 

Enumerations

enum  Error : uint16_t {
  OK,
  UnsupportedVersion,
  InvalidMessage,
  UnknownCommandTag,
  UnknownParameterTag,
  InvalidParameterLength,
  InvalidParameterCount,
  MissingParameter
}
 Errors from TLV message analysis. More...
 

Variables

const TAG NULL_TAG = 0x0000
 This tag is not used by DVB and can serve as "no value".
 

Detailed Description

Namespace for TLV protocols (Tag / Length / Value)

Enumeration Type Documentation

◆ Error

enum ts::tlv::Error : uint16_t

Errors from TLV message analysis.

An error is associated with a 16-bit "error information".

Enumerator
OK 

No error.

UnsupportedVersion 

Offset in message.

InvalidMessage 

Offset in message.

UnknownCommandTag 

Offset in message.

UnknownParameterTag 

Offset in message.

InvalidParameterLength 

Offset in message.

InvalidParameterCount 

Parameter tag.

MissingParameter 

Parameter tag.