JianXing Yi wrote:

> NioDatagramConnector connector = new NioDatagramConnector(500);
> for (int i=0; i<5000;i++) {
>   connector.connect(remote);
> }
>
It seems that NioDatagramConnector#connect(remote) immediately kicks off the
IoHandler or StateMachine. Can the IoHandler/StateMachine not run
immediately after NioDatagramConnector#connect()?

If you do not trigger traffic generation upon sessionOpened(), then this is possible.

So that we can start
traffic after all connections established. If yes, how?

You could start traffic generation with a separate method call to your IoHandler after your loop.

Reply via email to