TSDuck v3.38-3675
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
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 messages. More...
 
class  Message
 Abstract base class for TLV messages. More...
 
class  MessageFactory
 Factory class for TLV 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

using LENGTH = uint16_t
 Type for TLV length fields (16 bits).
 
using MessageFactoryPtr = SafePtr< MessageFactory, ThreadSafety::None >
 Safe pointer for MessageFactory (not thread-safe).
 
using MessagePtr = SafePtr< Message, ThreadSafety::None >
 Safe pointer for TLV messages (not thread-safe).
 
using MessagePtrMT = SafePtr< Message, ThreadSafety::Full >
 Safe pointer for TLV messages (thread-safe).
 
using TAG = uint16_t
 Type for TLV tags (16 bits).
 
using VERSION = uint8_t
 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.