users@grizzly.java.net

[Q] Passing around connection context such as remoteDestinationAddress and LocalSourceAddress

From: Simon Trudeau <strudeau_at_bluetreewireless.com>
Date: Thu, 6 Mar 2008 09:43:29 -0500

How can I obtain a connection context inside a CallbackHandler?

I would like to know, how can I obtain information about a connection?
Most of the time, I will end up passing my connectorHandler around to
read and to write, but I don't know how I can get information about the
connection such as what's the local port I am connected from and what's
the remote port and address I am connected to?

Any ideas for me?

 

 

Simon