}
public ProtocolSession connect( SocketAddress address, SocketAddress localAddress,
int timeout, ProtocolProvider provider ) throws IOException
{
IoSession session = connector.connect(
address, localAddress, timeout, adapter.adapt( provider ) );
return adapter.toProtocolSession( session );
}