[zeromq-dev] Using ZMQ_STREAM as tcp client. Why am I receiving extra info?
Luca Boccassi
luca.boccassi at gmail.com
Wed Nov 29 22:54:48 CET 2017
On Wed, 2017-11-29 at 20:00 +0000, Brian Wagener wrote:
> I have an application that uses zeromq for various things and want to
> also
> use it as a tcp client for other external connections. Currently if
> the
> external tcp server sends data, the client receives 5 byte id, 0
> bytes, 5
> bytes, and then actual message. How do I get zeromq not to send this
> stuff.
http://api.zeromq.org/4-2:zmq-socket
"When receiving TCP data, a ZMQ_STREAM socket shall prepend a message
part containing the routing id of the originating peer to the message
before passing it to the application."
and
"When a connection is made, a zero-length message will be received by
the application. Similarly, when the peer disconnects (or the
connection is lost), a zero-length message will be received by the
application."
--
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20171129/82491748/attachment.sig>
More information about the zeromq-dev
mailing list