pebbe / zmq4

A Go interface to ZeroMQ version 4
BSD 2-Clause "Simplified" License
1.17k stars 163 forks source link

❓: get message endpoint #62

Closed aletheia7 closed 8 years ago

aletheia7 commented 8 years ago

Is there a way to receive the endpoint of a message after router.RecMessage()?

I have a router socket used in router <-> router communication to connect to multiple endpoints. router.GetLastEndpoint() gives the last endpoint of a router.Connect().

router.RecMessageWithMetadata() gives nothing.

Perhaps a SocketMonitor() will work, however coordination between to goroutines, one receiving a message and one receiving the SocketMonitor events, may not be possible.

pebbe commented 8 years ago

I am not sure what you are asking.

zmq4 offers what ZeroMQ version 4 is offering. If you need help on how to solve certain design problems, you beter ask on the mailing list.

See: http://zeromq.org/docs:mailing-lists

aletheia7 commented 8 years ago

I want to get the endpoint (IP address) for each message. Is this available in ZeroMQ?

aletheia7 commented 8 years ago

Apparently not (2009): http://lists.zeromq.org/pipermail/zeromq-dev/2009-March/000442.html