On 6/28/06, netsql <[EMAIL PROTECTED]> wrote:
It seems that sessionCreated fires when connection is made.
What fires when connection times out (in handler?) ?
Also, when I call connect, I want to track what port I told it to go.
I will have 500 threads going at a time, when it connects or timesout, I
need to extract that port in the method.
IoConnector.connect() returns ConnectFuture. You can use ConnectFuture to
detect any problem occurred while attempting a connection.
ConnectFuture future = ...;
future.join(); // wait until the future is now.
try {
IoSession session = future.getSession();
} catch (RuntimeIOException e) {
e.printStackTrace();
}
HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41 4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4 455E 1C62 A7DC 0255 ECA6