[zeromq-dev] ZMessage : Address Format
Terry Corlet
tcorlet at gmail.com
Tue Oct 4 12:14:20 CEST 2011
Hi Martin
Thanks for your reply. I was hoping the Address property might have been a
little more transparent.
Terry
On Tue, Oct 4, 2011 at 5:58 PM, Martin Sustrik <sustrik at 250bpm.com> wrote:
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20111004/a802d334/attachment.htm>
More information about the zeromq-dev
mailing list