You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by netsql <ce...@gmail.com> on 2006/08/12 00:15:19 UTC

Handler events won't fire

I extend IoHandlerAdapter, can call it like this via:

    IoConnector _mConnector;
     _mConnector = new SocketConnector();
     ((IoConnectorConfig)
_mConnector.getDefaultConfig()).setConnectTimeout(20);

       IoHandler _pb = new SBPingHandler();

     _mConnector.connect(address, _pb);


But no events fire in Handler. HELP!
What am I missing?

tia,
.V

Re: Handler events won't fire

Posted by peter royal <pr...@apache.org>.
On Aug 11, 2006, at 6:15 PM, netsql wrote:
> I extend IoHandlerAdapter, can call it like this via:
>
>    IoConnector _mConnector;
>     _mConnector = new SocketConnector();
>     ((IoConnectorConfig)
> _mConnector.getDefaultConfig()).setConnectTimeout(20);
>
>       IoHandler _pb = new SBPingHandler();
>
>     _mConnector.connect(address, _pb);
>
>
> But no events fire in Handler. HELP!
> What am I missing?

What is the result of the ConnectFuture that IoConnector.connect()  
returned?

-pete


-- 
proyal@apache.org - http://fotap.org/~osi