Herry, > I was trying to look into the wire protocol used by zeromq, here are > some things I would like to ask: > 1. I use wuserver/wuclient when I connect REQ to REP, the REQ send 2 > bytes: [01 00] > when the connection accepted by REP, the REP send 2 bytes reply: > [01 00] > Is this the handshaking mechanism or just the mechanism to tell > each side about the connection?
It's not a handshake. Each peer is sending its identity in an async fashion. Given that you have no explicit identities set, each side sends an empty message. > 2. I haven't tried other combinations (PUSH/PULL, PUB/SUB, etc) are > there more information about the wire level protocol? From the manual, > zmq_tcp(7), there just describing the payload formating. The only additional protocol at the moment is accumulating the backtrace path with REQ/REP/XREQ/XREP sockets as explained elsewhere. Martin _______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
