You need to downcast SocketAddress to InetSocketAddress.

InetSocketAddress isa = (InetSocketAddress) sa;

HTH,
Greg

On 9/6/06, Johannes U. Jensen <[EMAIL PROTECTED]> wrote:
Hi,

I have implemented a StreamIoHandler, and when I receive a
sessionOpened() I would like to get the ip. I have looked at the
IOSession object but it only seems to be able to return a SocketAddress
which doesnt have any methods. How do I get the IP ?

Regards,
Johannes U. Jensen

Reply via email to