Skip to content

Commit

Permalink
Merge pull request #140 from mreiferson/mpub_docs_140
Browse files Browse the repository at this point in the history
MPUB protocol spec
  • Loading branch information
jehiah committed Jan 23, 2013
2 parents 093272e + 42f9b23 commit e5fb3d0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ Commands are line oriented and structured as follows:

* `MPUB` - publish multiple messages to a specified **topic**:

MPUB <topic_name> <num_messages>\n
[ 4-byte size in bytes ][ N-byte binary data ]... (repeated <num_messages> times)
MPUB <topic_name>\n
[ 4-byte body size ]
[ 4-byte num messages ]
[ 4-byte message #1 size ][ N-byte binary data ]
... (repeated <num_messages> times)

<topic_name> - a valid string
<num_messages> - a string representation of integer N

Success Response:

Expand Down

0 comments on commit e5fb3d0

Please sign in to comment.