diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-04-25 14:18:44 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-04-25 14:18:44 +0200 |
commit | be448e668988a19a9c257b69f469eb82395fff7a (patch) | |
tree | 21472f2a3f6beb4d50ee267008d772c211d09f24 /README | |
parent | a more descriptive readme (diff) | |
download | bus-be448e668988a19a9c257b69f469eb82395fff7a.tar.gz bus-be448e668988a19a9c257b69f469eb82395fff7a.tar.bz2 bus-be448e668988a19a9c257b69f469eb82395fff7a.tar.xz |
add message length restriction and message format to readme
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | README | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -4,6 +4,14 @@ bus uses a System V semaphore array and System V shared memory. Buses are named; the key of the semaphore array and the shared memory is stored in a regular file. +The shared memory used by bus is always 2048 bytes. Additionally +all messages should be encoded in UTF-8 and not contain any NULL +characters, except they MUST always end with a zero byte. +Furthermore messages should be prefixed with the process +identifer of the process whence the message originated, followed +by a space. If the process is ephemeral, 0 should be used instead +of the process identifier. + Communication over bus is synchronous. The broadcast call does not return until all listeners have received (and copyied) the message. |