Category:Backend Messages (Myth Protocol)

From MythTV Official Wiki
Revision as of 22:42, 21 February 2011 by Analogue (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The event system uses a pair of basic commands to push unsolicited events through MythTV.

MESSAGE

This command is sent from a client to the backend.

Example:

32      MESSAGE[]:[]CLEAR_SETTINGS_CACHE

Successful Response:

2       OK

BACKEND_MESSAGE

This command is used to differentiate unsolicited events sent by the backend, from responses to a client's query. There is no need to respond to these.

Example:

50      BACKEND_MESSAGE[]:[]CLEAR_SETTINGS_CACHE[]:[]empty

The event string may contain additional information in a space-separated string. Additional data may contain backend separaters, and will be filled with 'empty' if no additional data is needed.