[zeromq-dev] ZMessage : Address Format
Martin Sustrik
sustrik at 250bpm.com
Tue Oct 4 11:58:24 CEST 2011
Hi Terry,
> I've been working with the CLR bindings for clrzmq2 and also the
> ZMessage wrapper class. It's been a fantastic lib to work with, but I've
> hit a bit of a stumbling block:
> When I receive a message on a router socket, and then pass the socket
> into ZMessage, the Address property on ZMessage appears to be a 17 byte
> array. But I haven't clue what format this actually represents.
> I was hoping that I could call something like :
> /Encoding.GetString(Zmsg.Address)/ ....and it would reveal a simple
> "tcp//:address:port", but unfortunately it doesn't seem to work this
> way. Is there a way to decipher the Zmsg.Address or possibly add an
> address (byte array) onto to the ZMessage?
It's an opaque array of bytes representing the peer. There's nothing to
decode about it.
Martin
More information about the zeromq-dev
mailing list