aboutsummaryrefslogtreecommitdiffstats
path: root/_sources/protocol.txt
diff options
context:
space:
mode:
authorjason2015-11-20 11:42:18 -0700
committerjason2015-11-20 11:42:18 -0700
commitd4d1fe943380d087de3f0a54965d8dbb647b629c (patch)
treee3fa19815b5ee09fb09da0d38c7c156dbd8ea633 /_sources/protocol.txt
parentc972be300c5d182ad2a229cabb3150b365acad6b (diff)
downloadeventmq-d4d1fe943380d087de3f0a54965d8dbb647b629c.tar.gz
eventmq-d4d1fe943380d087de3f0a54965d8dbb647b629c.zip
updates
Diffstat (limited to '_sources/protocol.txt')
-rw-r--r--_sources/protocol.txt30
1 files changed, 29 insertions, 1 deletions
diff --git a/_sources/protocol.txt b/_sources/protocol.txt
index d9bd9e1..e4d5b7f 100644
--- a/_sources/protocol.txt
+++ b/_sources/protocol.txt
@@ -48,7 +48,7 @@ This extra frame is not shown in the specifications below.
48 48
49eMQP / Client 49eMQP / Client
50------------- 50-------------
51A **REQUEST** command consists of 7-frame multipart message, formatted as follows. 51A **REQUEST** command consists of a 7-frame multipart message, formatted as follows.
52 52
53====== ============== =========== 53====== ============== ===========
54FRAME Value Description 54FRAME Value Description
@@ -62,6 +62,20 @@ FRAME Value Description
626 _MSG_ The message to send 626 _MSG_ The message to send
63====== ============== =========== 63====== ============== ===========
64 64
65A **PUBLISH** command consists of a 7-frame multipart messag, formatted as follows.
66
67====== ============== ===========
68FRAME Value Description
69====== ============== ===========
700 _EMPTY_ leave empty
711 eMQP/1.0 Protocol version
722 PUBLISH command
733 _MSGID_ A unique id for the msg
744 _TOPIC_NAME_ the name of the queue the worker belongs to
755 _HEADERS_ dictionary of headers. can be an empty set
766 _MSG_ The message to send
77====== ============== ===========
78
65eMQP / Worker 79eMQP / Worker
66------------- 80-------------
67An **INFORM** command consists of a 5-frame multipart message, formatted as follows. 81An **INFORM** command consists of a 5-frame multipart message, formatted as follows.
@@ -128,3 +142,17 @@ Heartbeating
128 * Both worker and broker MUST send heartbeats at regular and agreed-upon intervals. 142 * Both worker and broker MUST send heartbeats at regular and agreed-upon intervals.
129 * If the worker detects that the broker disconnected it SHOULD restart the conversation. 143 * If the worker detects that the broker disconnected it SHOULD restart the conversation.
130 * If the broker detects that a worker has disconnected it should stop sending it a message of any type. 144 * If the broker detects that a worker has disconnected it should stop sending it a message of any type.
145
146Request Headers
147---------------
148Headers MUST be 0 to many comma seperated values inserted into the header field. If there are no headers requried, send an empty string MUST be sent where headers are required.
149
150Below is a table which defines and describes the headers.
151
152=============== ======= ======= ======= ===========
153Header REQUEST PUBLISH Default Description
154=============== ======= ======= ======= ===========
155reply-requested X False Once the job is finished, send a reply back with information from the job. If there is no information reply with a True value.
156retry-count:# X 0 Retry a failed job this many times before accepting defeat.
157guarentee X False Ensure the job completes by letting someone else worry about a success reply.
158=============== ======= ======= ======= ===========