[rabbitmq-discuss] How to obtain local address used in a connection
Fabio Margarido
fabiomargarido at gmail.com
Fri Mar 25 15:59:11 GMT 2011
On Fri, Mar 25, 2011 at 11:37, Simon MacMullen <simon at rabbitmq.com> wrote:
>
> Connection c = ...;
> ((SocketFrameHandler) ((AMQConnection)
> c).getFrameHandler())._socket.getLocalAddress();
>
> Not sure if that counts as "ready"...
>
Ready enough for me, as long as it's safe. :)
I've done a quick test, seems to work as intended.
Thank you very much.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110325/1056e316/attachment.htm>
More information about the rabbitmq-discuss
mailing list