| 1 | SET_META is used to set meta data for a specific stream. |
| 2 | |
| 3 | == Data Structure == |
| 4 | === Version 0 === |
| 5 | ||= Offset =||= Size/Type =||= Meaning =|| |
| 6 | ||0 ||uint8 ||Version (Always zero) || |
| 7 | ||1 ||uint8 ||Update Mode || |
| 8 | ||2 ||uint8 ||Metadata type, see [[Specs/MetaValues]] || |
| 9 | ||3 ||uint8 ||Length of Key with a maximum of 32 || |
| 10 | ||4 ||uint8 ||Length of Value || |
| 11 | ||5 ||string ||Key name || |
| 12 | ||... ||string ||Value || |
| 13 | |
| 14 | ==== Update Mode ==== |
| 15 | ||= Name =||= ID =||= Meaning =|| |
| 16 | ||SET ||0 ||Set the value for the given key. All previous values for that key are discarded. || |
| 17 | ||ADD ||1 ||Add a value for the given key. All previous values for that key are kept. || |
| 18 | ||DELETE ||2 ||Delete a value for the given key. || |
| 19 | ||CLEAR ||3 ||Clear out all meta data. Key MUST be set to NONE and value must be empty (0 bytes long). || |
| 20 | ||FINALIZE ||4 ||Inform the peer that all changes have been done and the result should become committed/active. || |