Hi,
I have in the code following lines:
context.write(context.getAddress(), buffer, null);
is it safe to replace with:
connection = context.getConnection();
remoteAddress = (InetSocketAddress)context.getAddress();
connection.write(remoteAddress, buffer, null);
The main difference is that point where I use connection is much later
and executed by other thread ( e.q. I am building in async reply
mechanism).
Well, it works but I want to be sure that it's reliable.
Thanks,
Tigran.