Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.51 KB

protocol.rst

File metadata and controls

60 lines (41 loc) · 1.51 KB

DVB CSS Protocol modules

Module: dvbcss.protocol

The dvbcss.protocol module contains classes to implement the CSS-CII, CSS-TS and CSS-WC protocols. For each protocol there are objects to represent the messages that flow across the protocols and classes that implement clients and servers for the protocols.

cii.rst ts.rst wc.rst

See servers-internals for information on how the servers are implemented.

Common types and objects

Signalling that a property is to be omitted from a message

OMIT

Private data

Some protocol messages contain optional properties to carry private data.

Private data is encoded in message objects here as a list of dict objects where each has a key "type" whose value is a URI.

Each dict can contain any other keys and values you wish so long as they can be parsed by the python json <json> module's encoder. For example:

example_private_data = [
    { "type" : "urn:bbc.co.uk:pid", "pid":"b00291843",
      "entity":"episode"
    },
    { "type" : "tag:bbc.co.uk/programmes/clips/link-url",
      "http://www.bbc.co.uk/programmes/b1290532/"
    }
]

Exceptions

dvbcss.protocol.client.ConnectionError