GENERIC socket type and COMMAND flag added

GENERIC allows to use 0MQ as a dumb networking framework.
It provides user with connect/disconnect notifications.
Also, each inbound message is labeled by ID of the connection
it originated from. Outbound messages should be labeled by
the ID of the connection to send them to.

To distinguish connect/disconnect notifications from common
messages, COMMAND flag was introduced.

Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
This commit is contained in:
Martin Sustrik
2011-07-17 23:31:29 +02:00
parent c8e8f2a24c
commit bf78e230ad
5 changed files with 46 additions and 20 deletions

View File

@@ -48,6 +48,7 @@ namespace zmq
enum
{
label = 1,
command = 2,
shared = 64,
more = 128
};